1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Unit test fix, job_type is no longer a required field (defaults to 'run').

This commit is contained in:
Chris Church 2015-05-12 11:11:32 -04:00
parent e017270201
commit 0af15cd13d

View File

@ -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)