Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if there is a syntax error in the annotations the should be ignored f…
…or the function
- Loading branch information
1 parent
38ac9d9
commit f5e4ee4
Showing
4 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
hypothesis-python/tests/ghostwriter/recorded/invalid_types.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This test code was written by the `hypothesis.extra.ghostwriter` module | ||
# and is provided under the Creative Commons Zero public domain dedication. | ||
|
||
import example_code.future_annotations | ||
from hypothesis import given, strategies as st | ||
|
||
# TODO: replace st.nothing() with appropriate strategies | ||
|
||
|
||
@given(attr1=st.nothing(), attr2=st.nothing(), attr3=st.nothing()) | ||
def test_fuzz_invalid_types(attr1, attr2, attr3) -> None: | ||
example_code.future_annotations.invalid_types(attr1=attr1, attr2=attr2, attr3=attr3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters