mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
Unit test fix, job_type is no longer a required field (defaults to 'run').
This commit is contained in:
parent
e017270201
commit
0af15cd13d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user