Skip to content

Commit

Permalink
Filter out valid values in a test case that verifies error cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Dygalo committed Oct 4, 2019
1 parent c3482a5 commit 5a5c57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cli/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from schemathesis.cli import validators


@given(value=st.text())
@given(value=st.text().filter(lambda x: "//" not in x))
def test_validate_schema(value):
with pytest.raises(click.UsageError):
validators.validate_schema(None, None, value)
Expand Down

0 comments on commit 5a5c57f

Please sign in to comment.