mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
convert py2 -> py3
This commit is contained in:
@@ -206,10 +206,10 @@ def test_vault_validation(organization, inputs, valid):
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@pytest.mark.parametrize('become_method, valid', zip(
|
||||
@pytest.mark.parametrize('become_method, valid', list(zip(
|
||||
dict(V1Credential.FIELDS['become_method'].choices).keys(),
|
||||
itertools.repeat(True)
|
||||
) + [('invalid-choice', False)])
|
||||
)) + [('invalid-choice', False)])
|
||||
def test_choices_validity(become_method, valid, organization):
|
||||
inputs = {'become_method': become_method}
|
||||
cred_type = CredentialType.defaults['ssh']()
|
||||
|
||||
Reference in New Issue
Block a user