Skip to content
Snippets Groups Projects
Commit 3009dd75 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Fix the flake8 errors

parent e9327a95
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment