Skip to content

Commit

Permalink
Move bad_specs fixtures to its own fixtures folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkhaeuser committed Sep 13, 2016
1 parent 74cec24 commit fa328f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def test_other_errors_stop_application_to_setup():
# The previous tests were just about operationId not being resolvable.
# Other errors should still result exceptions!
with pytest.raises(InvalidSpecification):
Api(TEST_FOLDER / "fakeapi/bad_specs.yaml", "/api/v1.0",
Api(TEST_FOLDER / "fixtures/bad_specs/swagger.yaml", "/api/v1.0",
{'title': 'OK'})

# Debug mode should ignore the error
api = Api(TEST_FOLDER / "fakeapi/bad_specs.yaml", "/api/v1.0",
api = Api(TEST_FOLDER / "fixtures/bad_specs/swagger.yaml", "/api/v1.0",
{'title': 'OK'}, debug=True)
assert api.specification['info']['title'] == 'OK'

Expand Down

0 comments on commit fa328f7

Please sign in to comment.