convert py2 -> py3

This commit is contained in:
Ryan Petrello
2018-10-22 12:58:42 -04:00
parent f132ce9b64
commit f223df303f
202 changed files with 1137 additions and 2046 deletions

View File

@@ -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']()