Debian Codegraph @

hypothesis-python/tests/ghostwriter/recorded/merge_dicts.txt

raw
1 # This test code was written by the `hypothesis.extra.ghostwriter` module
2 # and is provided under the Creative Commons Zero public domain dedication.
3
4 import collections.abc
5 import example_code.future_annotations
6 from collections import ChainMap
7 from hypothesis import given, strategies as st
8
9
10 @given(
11 map1=st.one_of(
12 st.dictionaries(keys=st.text(), values=st.integers()).map(ChainMap),
13 st.dictionaries(keys=st.text(), values=st.integers()),
14 ),
15 map2=st.one_of(
16 st.dictionaries(keys=st.text(), values=st.integers()).map(ChainMap),
17 st.dictionaries(keys=st.text(), values=st.integers()),
18 ),
19 )
20 def test_fuzz_merge_dicts(
21 map1: collections.abc.Mapping[str, int], map2: collections.abc.Mapping[str, int]
22 ) -> None:
23 example_code.future_annotations.merge_dicts(map1=map1, map2=map2)