Make tests pass with current versions of things

This commit is contained in:
Shane McDonald
2020-06-15 20:54:14 -04:00
parent 241931309e
commit de82c613fc
11 changed files with 49 additions and 35 deletions

View File

@@ -158,7 +158,7 @@ def test_cred_type_injectors_schema(injectors, valid):
)
field = CredentialType._meta.get_field('injectors')
if valid is False:
with pytest.raises(ValidationError, message="Injector was supposed to throw a validation error, data: {}".format(injectors)):
with pytest.raises(ValidationError):
field.clean(injectors, type_)
else:
field.clean(injectors, type_)