mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 22:07:36 -02:30
more organization of access method preprocessing
This commit is contained in:
14
awx/main/tests/functional/api/test_adding_options.py
Normal file
14
awx/main/tests/functional/api/test_adding_options.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
@pytest.fixture
|
||||
def test_inventory_group_add(inventory, alice, bob, options):
|
||||
inventory.admin_role.add(alice)
|
||||
response = options(reverse('api:inventory_detail', args=[inventory.pk]), alice)
|
||||
print ' resp: ' + str(response.data)
|
||||
assert 'POST' in response.data
|
||||
|
||||
inventory.read_role.add(bob)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user