Debian Codegraph @

hypothesis-python/tests/ghostwriter/recorded/add_custom_classes.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 example_code.future_annotations
5 import typing
6 from example_code.future_annotations import CustomClass
7 from hypothesis import given, strategies as st
8
9
10 @given(
11 c1=st.builds(CustomClass, number=st.integers()),
12 c2=st.one_of(st.none(), st.builds(CustomClass, number=st.integers())),
13 )
14 def test_fuzz_add_custom_classes(
15 c1: example_code.future_annotations.CustomClass,
16 c2: typing.Union[example_code.future_annotations.CustomClass, None],
17 ) -> None:
18 example_code.future_annotations.add_custom_classes(c1=c1, c2=c2)