From dcbba2b121da1525feff162aca17a8cc4adf55d6 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 2 Oct 2015 10:01:00 -0700 Subject: Enforce all flake8 rules except E129 Bring ironic-python-agent in line with the other ironic projects. Stop ignoring all E12* errors except E129 Stop ignoring E711 Change-Id: Icb9bc198473d1b5e807c20869eb2af7f4d7ac360 --- ironic_python_agent/tests/functional/base.py | 10 +++++----- ironic_python_agent/tests/functional/test_commands.py | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'ironic_python_agent/tests/functional') diff --git a/ironic_python_agent/tests/functional/base.py b/ironic_python_agent/tests/functional/base.py index 930949fa..d57e3d46 100644 --- a/ironic_python_agent/tests/functional/base.py +++ b/ironic_python_agent/tests/functional/base.py @@ -33,9 +33,9 @@ class FunctionalBase(test_base.BaseTestCase): # Build a basic standalone agent using the config option defaults. # 127.0.0.1:6835 is the fake Ironic client. self.agent = agent.IronicPythonAgent( - 'http://127.0.0.1:6835', 'localhost', ('0.0.0.0', - int(test_port)), 3, 10, None, 300, 1, - 'agent_ipmitool', True) + 'http://127.0.0.1:6835', 'localhost', + ('0.0.0.0', int(test_port)), 3, 10, None, 300, 1, 'agent_ipmitool', + True) self.process = multiprocessing.Process( target=self.agent.run) self.process.start() @@ -46,8 +46,8 @@ class FunctionalBase(test_base.BaseTestCase): max_tries = os.environ.get('IPA_WAIT_TIME', '2') while tries < int(max_tries): try: - return requests.get('http://localhost:%s/v1/commands' % - test_port) + return requests.get( + 'http://localhost:%s/v1/commands' % test_port) except requests.ConnectionError: time.sleep(.1) tries += 1 diff --git a/ironic_python_agent/tests/functional/test_commands.py b/ironic_python_agent/tests/functional/test_commands.py index 797485bd..dd263ae8 100644 --- a/ironic_python_agent/tests/functional/test_commands.py +++ b/ironic_python_agent/tests/functional/test_commands.py @@ -20,7 +20,8 @@ from ironic_python_agent.tests.functional import base class TestCommands(base.FunctionalBase): def test_empty_commands(self): - commands = requests.get('http://localhost:%s/v1/commands' % - os.environ.get('TEST_PORT', '9999')) + commands = requests.get( + 'http://localhost:%s/v1/commands' % os.environ.get('TEST_PORT', + '9999')) self.assertEqual(200, commands.status_code) self.assertEqual({'commands': []}, commands.json()) -- cgit v1.2.1