mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
update pytest
This commit is contained in:
@@ -54,14 +54,13 @@ def test_create_workflow_job_template_node(run_module, admin_user, wfjt, job_tem
|
|||||||
|
|
||||||
@pytest.mark.django_db
|
@pytest.mark.django_db
|
||||||
def test_create_workflow_job_template_node_no_template(run_module, admin_user, wfjt, job_template):
|
def test_create_workflow_job_template_node_no_template(run_module, admin_user, wfjt, job_template):
|
||||||
"""This is a part of the API contract for creating approval nodes
|
"""This is a part of the API contract for creating approval nodes"""
|
||||||
and at some point in the future, tha feature will be supported by the collection
|
|
||||||
"""
|
|
||||||
this_identifier = '42🐉'
|
this_identifier = '42🐉'
|
||||||
result = run_module('tower_workflow_job_template_node', {
|
result = run_module('tower_workflow_job_template_node', {
|
||||||
'identifier': this_identifier,
|
'identifier': this_identifier,
|
||||||
'workflow_job_template': wfjt.name,
|
'workflow_job_template': wfjt.name,
|
||||||
'organization': wfjt.organization.name,
|
'organization': wfjt.organization.name,
|
||||||
|
'approval_node': {'name': 'foo-jt'}
|
||||||
}, admin_user)
|
}, admin_user)
|
||||||
assert not result.get('failed', False), result.get('msg', result)
|
assert not result.get('failed', False), result.get('msg', result)
|
||||||
assert result.get('changed', False), result
|
assert result.get('changed', False), result
|
||||||
|
|||||||
Reference in New Issue
Block a user