refactored to use is_valid_relation instead of post

This commit is contained in:
Gabe Muniz
2023-02-14 00:07:49 -05:00
committed by Rick Elrod
parent 7112da9cdc
commit 8c4e943af0
3 changed files with 23 additions and 28 deletions

View File

@@ -511,6 +511,14 @@ def group(inventory):
return inventory.groups.create(name='single-group')
@pytest.fixture
def constructed_inventory(organization):
"""
creates a new constructed inventory source
"""
return Inventory.objects.create(name='dummy1', kind='constructed', organization=organization)
@pytest.fixture
def inventory_source(inventory):
# by making it ec2, the credential is not required