mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
Fix pep8 errors, rebase
This commit is contained in:
@@ -6,6 +6,7 @@ import pytest
|
|||||||
from awx.main.models import Inventory, Credential
|
from awx.main.models import Inventory, Credential
|
||||||
from awx.main.tests.functional.conftest import insights_credential, credentialtype_insights
|
from awx.main.tests.functional.conftest import insights_credential, credentialtype_insights
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
def test_inventory_create(run_module, admin_user, organization, insights_credential):
|
def test_inventory_create(run_module, admin_user, organization, insights_credential):
|
||||||
# Create an insights credential
|
# Create an insights credential
|
||||||
@@ -33,6 +34,7 @@ def test_inventory_create(run_module, admin_user, organization, insights_credent
|
|||||||
|
|
||||||
assert inv.organization_id == organization.id
|
assert inv.organization_id == organization.id
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
def test_invalid_smart_inventory_create(run_module, admin_user, organization):
|
def test_invalid_smart_inventory_create(run_module, admin_user, organization):
|
||||||
result = run_module('tower_inventory', {
|
result = run_module('tower_inventory', {
|
||||||
|
|||||||
Reference in New Issue
Block a user