From 0a89581868bf6eed38854680a37470a36867b79b Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 5 May 2016 14:23:41 -0400 Subject: [PATCH] Fix up flake8 errors --- awx/main/tests/functional/conftest.py | 16 ++++++++-------- awx/main/tests/unit/api/test_serializers.py | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/awx/main/tests/functional/conftest.py b/awx/main/tests/functional/conftest.py index f239e5d2a5..21411dd57b 100644 --- a/awx/main/tests/functional/conftest.py +++ b/awx/main/tests/functional/conftest.py @@ -188,10 +188,10 @@ def label(organization): @pytest.fixture def notification_template(organization): return NotificationTemplate.objects.create(name='test-notification_template', - organization=organization, - notification_type="webhook", - notification_configuration=dict(url="http://localhost", - headers={"Test": "Header"})) + organization=organization, + notification_type="webhook", + notification_configuration=dict(url="http://localhost", + headers={"Test": "Header"})) @pytest.fixture def admin(user): return user('admin', True) @@ -276,10 +276,10 @@ def notification_template_factory(organization): notification_template = NotificationTemplate.objects.get(name=name) except NotificationTemplate.DoesNotExist: notification_template = NotificationTemplate(name=name, - organization=organization, - notification_type="webhook", - notification_configuration=dict(url="http://localhost", - headers={"Test": "Header"})) + organization=organization, + notification_type="webhook", + notification_configuration=dict(url="http://localhost", + headers={"Test": "Header"})) notification_template.save() return notification_template return n diff --git a/awx/main/tests/unit/api/test_serializers.py b/awx/main/tests/unit/api/test_serializers.py index f538f954ba..7857bb5e76 100644 --- a/awx/main/tests/unit/api/test_serializers.py +++ b/awx/main/tests/unit/api/test_serializers.py @@ -160,6 +160,7 @@ class TestJobTemplateSerializerValidation(object): good_extra_vars = ["{\"test\": \"keys\"}", "---\ntest: key"] bad_extra_vars = ["{\"test\": \"keys\"", "---\ntest: [2"] + def test_validate_extra_vars(self): serializer = JobTemplateSerializer() for ev in self.good_extra_vars: