Skip to content

Commit

Permalink
Uncomment out scm_inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
djyasin committed Oct 11, 2024
1 parent 195bc4b commit 0c02d25
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions awx/main/tests/functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def kube_credential(credentialtype_kube):

@pytest.fixture
def inventory(organization):
available_providers = compute_cloud_inventory_sources()
available_providers = tuple(compute_cloud_inventory_sources())

if available_providers:
if not organization.inventories.exists():
Expand All @@ -382,18 +382,18 @@ def insights_inventory(inventory):
return inventory


# @pytest.fixture
# def scm_inventory_source(inventory, project):
# inv_src = InventorySource(
# name="test-scm-inv",
# source_project=project,
# source='scm',
# source_path='inventory_file',
# inventory=inventory,
# )
# with mock.patch('awx.main.models.unified_jobs.UnifiedJobTemplate.update'):
# inv_src.save()
# return inv_src
@pytest.fixture
def scm_inventory_source(inventory, project):
inv_src = InventorySource(
name="test-scm-inv",
source_project=project,
source='scm',
source_path='inventory_file',
inventory=inventory,
)
with mock.patch('awx.main.models.unified_jobs.UnifiedJobTemplate.update'):
inv_src.save()
return inv_src


@pytest.fixture
Expand Down

0 comments on commit 0c02d25

Please sign in to comment.