diff --git a/opentech/apply/tests/test_workflow.py b/opentech/apply/tests/test_workflow.py index c1c4bd784e1921871453fdc2d0a89baad072733c..1545f1cc9bb9a6ef876bef3f32f4b54e066bb628 100644 --- a/opentech/apply/tests/test_workflow.py +++ b/opentech/apply/tests/test_workflow.py @@ -1,7 +1,7 @@ from django.test import SimpleTestCase from django.forms import Form -from opentech.apply.workflow import Phase, Stage, Workflow +from opentech.apply.workflow import Action, Phase, Stage, Workflow from .factories import PhaseFactory, StageFactory, WorkflowFactory @@ -52,3 +52,10 @@ class TestPhaseCreation(SimpleTestCase): name = 'the_phase' phase = Phase(name) self.assertEqual(phase.name, name) + + +class TestActions(SimpleTestCase): + def test_can_create_action(self): + name = 'action stations' + action = Action(name) + self.assertEqual(action.name, name) diff --git a/opentech/apply/workflow.py b/opentech/apply/workflow.py index 24e10646c20de48aa140f5ad553c07b2189b3cf5..352530db7c60eead182c4daa952a0cc2cfe7a466 100644 --- a/opentech/apply/workflow.py +++ b/opentech/apply/workflow.py @@ -63,6 +63,11 @@ class Phase: return '__'.join([self.stage.name, self.name, str(self.occurance)]) +class Action: + def __init__(self, name: str): + self.name = name + + # --- OTF Workflow --- class ReviewPhase(Phase):