We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe0443c commit 690bc2dCopy full SHA for 690bc2d
tests/integration/test_main.py
@@ -31,6 +31,14 @@ def test_schema_unknown():
31
main(testargs)
32
33
34
+def test_validation_error():
35
+ """SystemExit on running with ValidationError."""
36
+ testargs = ['--schema', '3.0.0',
37
+ './tests/integration/data/v2.0/petstore.yaml']
38
+ with pytest.raises(SystemExit):
39
+ main(testargs)
40
+
41
42
def test_nonexisting_file():
43
"""Calling with non-existing file should sys.exit."""
44
testargs = ['i_dont_exist.yaml']
0 commit comments