From 3009dd75d8a7fdf64fca8eb11d0c810831843e0f Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Wed, 13 Dec 2017 16:28:30 +0000 Subject: [PATCH] Fix the flake8 errors --- opentech/apply/tests/test_workflow.py | 1 + opentech/apply/workflow.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/opentech/apply/tests/test_workflow.py b/opentech/apply/tests/test_workflow.py index cabd5a0df..1fda36a31 100644 --- a/opentech/apply/tests/test_workflow.py +++ b/opentech/apply/tests/test_workflow.py @@ -32,6 +32,7 @@ class TestWorkflowCreation(SimpleTestCase): workflow = WorkflowFactory(num_stages=2) self.assertEqual(workflow.next(workflow.stages[0]), workflow.stages[1]) + class TestStageCreation(SimpleTestCase): def test_can_create_stage(self): name = 'the_stage' diff --git a/opentech/apply/workflow.py b/opentech/apply/workflow.py index 7232ef447..60d4fedf4 100644 --- a/opentech/apply/workflow.py +++ b/opentech/apply/workflow.py @@ -18,7 +18,7 @@ class Workflow(Iterable['Stage']): for i, stage in enumerate(self): if stage == current_stage: try: - return self.stages[i+1] + return self.stages[i + 1] except IndexError: pass -- GitLab