Fix tests

This commit is contained in:
Cristi Vîjdea
2018-08-09 03:40:35 +03:00
parent cd4bd4a18e
commit 1ca401959c
2 changed files with 3 additions and 2 deletions
+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'] = ''