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

Add basic Action class

parent a4da846e
No related branches found
No related tags found
No related merge requests found
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)
......@@ -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):
......
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