mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
Unit test fix, job_type is no longer a required field (defaults to 'run').
This commit is contained in:
@@ -280,7 +280,7 @@ class JobTemplateTest(BaseJobTestMixin, django.test.TestCase):
|
|||||||
|
|
||||||
# Test that all required fields are really required.
|
# Test that all required fields are really required.
|
||||||
data['name'] = 'another new job template'
|
data['name'] = 'another new job template'
|
||||||
for field in ('name', 'job_type', 'inventory', 'project', 'playbook'):
|
for field in ('name', 'inventory', 'project', 'playbook'):
|
||||||
with self.current_user(self.user_sue):
|
with self.current_user(self.user_sue):
|
||||||
d = dict(data.items())
|
d = dict(data.items())
|
||||||
d.pop(field)
|
d.pop(field)
|
||||||
|
|||||||
Reference in New Issue
Block a user