Fix pylint errors

This commit is contained in:
Tom Page
2020-06-16 15:57:19 +01:00
parent 73a39c1e55
commit fd18194b1b
2 changed files with 43 additions and 40 deletions

View File

@@ -72,6 +72,7 @@ EXAMPLES = '''
from ..module_utils.tower_api import TowerModule from ..module_utils.tower_api import TowerModule
def main(): def main():
# Any additional arguments that are not fields of the item can be added here # Any additional arguments that are not fields of the item can be added here
argument_spec = dict( argument_spec = dict(

View File

@@ -5,6 +5,7 @@ import pytest
from awx.main.models import CredentialInputSource, Credential, CredentialType, Organization from awx.main.models import CredentialInputSource, Credential, CredentialType, Organization
@pytest.fixture @pytest.fixture
def aim_cred_type(): def aim_cred_type():
ct = CredentialType.defaults['aim']() ct = CredentialType.defaults['aim']()
@@ -279,6 +280,7 @@ def source_cred_aim_alt(aim_cred_type):
} }
) )
@pytest.mark.django_db @pytest.mark.django_db
def test_aim_credential_source(run_module, admin_user, organization, source_cred_aim, source_cred_aim_alt, silence_deprecation): def test_aim_credential_source(run_module, admin_user, organization, source_cred_aim, source_cred_aim_alt, silence_deprecation):
ct = CredentialType.defaults['ssh']() ct = CredentialType.defaults['ssh']()