adding prompt-to-launch field on Labels field in Workflow Templates; with necessary UI and testing changes

Co-authored-by: Keith Grant <keithjgrant@gmail.com>
This commit is contained in:
Sarabraj Singh
2022-08-03 14:27:35 -04:00
committed by Alan Rominger
parent 4e665ca77f
commit 663ef2cc64
24 changed files with 365 additions and 78 deletions

View File

@@ -18,6 +18,8 @@ def test_create_workflow_job_template(run_module, admin_user, organization, surv
'survey_spec': survey_spec,
'survey_enabled': True,
'state': 'present',
'job_tags': '',
'skip_tags': '',
},
admin_user,
)
@@ -35,7 +37,16 @@ def test_create_workflow_job_template(run_module, admin_user, organization, surv
@pytest.mark.django_db
def test_create_modify_no_survey(run_module, admin_user, organization, survey_spec):
result = run_module('workflow_job_template', {'name': 'foo-workflow', 'organization': organization.name}, admin_user)
result = run_module(
'workflow_job_template',
{
'name': 'foo-workflow',
'organization': organization.name,
'job_tags': '',
'skip_tags': '',
},
admin_user,
)
assert not result.get('failed', False), result.get('msg', result)
assert result.get('changed', False), result