labels + rbac + tests

This commit is contained in:
Chris Meyers
2016-04-04 12:55:58 -04:00
parent 0be8be6954
commit fa6f5329cf
3 changed files with 82 additions and 7 deletions

View File

@@ -151,6 +151,10 @@ def credential():
def inventory(organization):
return organization.inventories.create(name="test-inv")
@pytest.fixture
def label(organization):
return organization.labels.create(name="test-label", description="test-label-desc")
@pytest.fixture
def role():
return Role.objects.create(name='role')
@@ -219,9 +223,6 @@ def hosts(group):
return hosts
return rf
@pytest.fixture
def permissions():
return {