Skip to content

Commit

Permalink
Fix tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkhaeuser committed Sep 13, 2016
1 parent 0bc04c5 commit ecd7d3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
24 changes: 0 additions & 24 deletions tests/fakeapi/missing_op_id.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def test_invalid_operation_does_stop_application_to_setup():
Api(TEST_FOLDER / "fixtures/user_module_loading_error/swagger.yaml", "/api/v1.0",
{'title': 'OK'})

with pytest.raises(ImportError):
Api(TEST_FOLDER / "fakeapi/missing_op_id.yaml", "/api/v1.0",
with pytest.raises(ResolverError):
Api(TEST_FOLDER / "fixtures/missing_op_id/swagger.yaml", "/api/v1.0",
{'title': 'OK'})


Expand All @@ -71,7 +71,7 @@ def test_invalid_operation_does_not_stop_application_in_debug_mode():
{'title': 'OK'}, debug=True)
assert api.specification['info']['title'] == 'OK'

api = Api(TEST_FOLDER / "fakeapi/missing_op_id.yaml", "/api/v1.0",
api = Api(TEST_FOLDER / "fixtures/missing_op_id/swagger.yaml", "/api/v1.0",
{'title': 'OK'}, debug=True)
assert api.specification['info']['title'] == 'OK'

Expand Down

0 comments on commit ecd7d3a

Please sign in to comment.