Skip to content

Commit 480ca82

Browse files
committed
Forgot to actually call main
1 parent 12a64ac commit 480ca82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/test_main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def test_nonexisting_file(mock_sys):
1010
# we can insert a dummy here
1111
testargs = ['progname', 'i_dont_exist.yaml']
1212
with mock.patch('sys.argv', testargs):
13-
assert mock_sys.exit.assert_called
13+
main()
14+
assert not mock_sys.exit.called
1415

1516

1617
@mock.patch('openapi_spec_validator.__main__.sys')

0 commit comments

Comments
 (0)