From 4fc100ac8c2555e3fc3a39e821339cb4861cbb26 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 28 Apr 2015 18:04:12 -0400 Subject: [PATCH] flake8 --- awx/main/tests/jobs/job_launch.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/awx/main/tests/jobs/job_launch.py b/awx/main/tests/jobs/job_launch.py index 3fd5e8452b..26124b1f61 100644 --- a/awx/main/tests/jobs/job_launch.py +++ b/awx/main/tests/jobs/job_launch.py @@ -7,11 +7,9 @@ from __future__ import absolute_import # Django import django from django.core.urlresolvers import reverse -from django.conf import settings # AWX from awx.main.models import * # noqa -from awx.main.tests.base import BaseLiveServerTest from .base import BaseJobTestMixin __all__ = ['JobTemplateLaunchTest', 'JobTemplateLaunchPasswordsTest'] @@ -111,14 +109,14 @@ class JobTemplateLaunchTest(BaseJobTestMixin, django.test.TestCase): # pass an invalid/inactive credential value). with self.current_user(self.user_sue): self.cred_sue.mark_inactive() - response = self.post(self.launch_url, {}, expect=400) - response = self.post(self.launch_url, {'credential': 0}, expect=400) - response = self.post(self.launch_url, {'credential_id': 0}, expect=400) - response = self.post(self.launch_url, {'credential': 'one'}, expect=400) - response = self.post(self.launch_url, {'credential_id': 'one'}, expect=400) + self.post(self.launch_url, {}, expect=400) + self.post(self.launch_url, {'credential': 0}, expect=400) + self.post(self.launch_url, {'credential_id': 0}, expect=400) + self.post(self.launch_url, {'credential': 'one'}, expect=400) + self.post(self.launch_url, {'credential_id': 'one'}, expect=400) self.cred_doug.mark_inactive() - response = self.post(self.launch_url, {'credential': self.cred_doug.pk}, expect=400) - response = self.post(self.launch_url, {'credential_id': self.cred_doug.pk}, expect=400) + self.post(self.launch_url, {'credential': self.cred_doug.pk}, expect=400) + self.post(self.launch_url, {'credential_id': self.cred_doug.pk}, expect=400) def test_no_project_fail(self): # Job Templates without projects can not be launched @@ -148,7 +146,7 @@ class JobTemplateLaunchTest(BaseJobTestMixin, django.test.TestCase): # Job Templates with deleted credentials cannot be launched. self.cred_sue.mark_inactive() with self.current_user(self.user_sue): - response = self.post(self.launch_url, {}, expect=400) + self.post(self.launch_url, {}, expect=400) class JobTemplateLaunchPasswordsTest(BaseJobTestMixin, django.test.TestCase): def setUp(self):