mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Make tests pass with current versions of things
This commit is contained in:
@@ -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_)
|
||||
|
||||
Reference in New Issue
Block a user