mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
more rename, mostly in test
This commit is contained in:
@@ -9,7 +9,7 @@ from awx.main.models import Label
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_create_label(run_module, admin_user, organization):
|
||||
result = run_module('tower_label', dict(name='test-label', organization=organization.name), admin_user)
|
||||
result = run_module('label', dict(name='test-label', organization=organization.name), admin_user)
|
||||
assert not result.get('failed'), result.get('msg', result)
|
||||
assert result.get('changed', False)
|
||||
|
||||
@@ -18,7 +18,7 @@ def test_create_label(run_module, admin_user, organization):
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_create_label_using_org_id(run_module, admin_user, organization):
|
||||
result = run_module('tower_label', dict(name='test-label', organization=organization.id), admin_user)
|
||||
result = run_module('label', dict(name='test-label', organization=organization.id), admin_user)
|
||||
assert not result.get('failed'), result.get('msg', result)
|
||||
assert result.get('changed', False)
|
||||
|
||||
@@ -29,7 +29,7 @@ def test_create_label_using_org_id(run_module, admin_user, organization):
|
||||
def test_modify_label(run_module, admin_user, organization):
|
||||
label = Label.objects.create(name='test-label', organization=organization)
|
||||
|
||||
result = run_module('tower_label', dict(name='test-label', new_name='renamed-label', organization=organization.name), admin_user)
|
||||
result = run_module('label', dict(name='test-label', new_name='renamed-label', organization=organization.name), admin_user)
|
||||
assert not result.get('failed'), result.get('msg', result)
|
||||
assert result.get('changed', False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user