Fix tests

This commit is contained in:
Cristi Vîjdea committed 2018-08-09 03:40:35 +03:00
1 parent cd4bd4a18e
commit 1ca401959c
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -25,8 +25,8 @@ def test_validator_url(swagger_settings, swagger):
swagger_settings['VALIDATOR_URL'] = None
_check_swagger_setting(swagger, 'validatorUrl', None)
swagger_settings['VALIDATOR_URL'] = 'not none'
_check_swagger_setting(swagger, 'validatorUrl', 'not none')
swagger_settings['VALIDATOR_URL'] = 'http://not.none/'
_check_swagger_setting(swagger, 'validatorUrl', 'http://not.none/')
with pytest.raises(KeyError):
swagger_settings['VALIDATOR_URL'] = ''