diff --git a/awx_collection/test/awx/test_credential.py b/awx_collection/test/awx/test_credential.py index e68a233f61..c67953197e 100644 --- a/awx_collection/test/awx/test_credential.py +++ b/awx_collection/test/awx/test_credential.py @@ -137,16 +137,15 @@ def test_secret_field_write_twice(run_module, organization, admin_user, cred_typ @pytest.mark.django_db @pytest.mark.parametrize('state', ('present', 'absent', 'exists')) def test_credential_state(run_module, organization, admin_user, cred_type, state): - for state in ('present', 'absent', 'exists'): - result = run_module( - 'credential', - dict( - name='Galaxy Token for Steve', - organization=organization.name, - credential_type=cred_type.name, - inputs={'token': '7rEZK38DJl58A7RxA6EC7lLvUHbBQ1'}, - state=state, - ), - admin_user, - ) - assert not result.get('failed', False), result.get('msg', result) + result = run_module( + 'credential', + dict( + name='Galaxy Token for Steve', + organization=organization.name, + credential_type=cred_type.name, + inputs={'token': '7rEZK38DJl58A7RxA6EC7lLvUHbBQ1'}, + state=state, + ), + admin_user, + ) + assert not result.get('failed', False), result.get('msg', result)