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 12a64ac commit 480ca82Copy full SHA for 480ca82
tests/integration/test_main.py
@@ -10,7 +10,8 @@ def test_nonexisting_file(mock_sys):
10
# we can insert a dummy here
11
testargs = ['progname', 'i_dont_exist.yaml']
12
with mock.patch('sys.argv', testargs):
13
- assert mock_sys.exit.assert_called
+ main()
14
+ assert not mock_sys.exit.called
15
16
17
@mock.patch('openapi_spec_validator.__main__.sys')
0 commit comments