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

Add basic phase model

parent 3d6b912e
No related merge requests found
from django.test import SimpleTestCase
from django.forms import Form
from opentech.apply.workflow import Stage, Workflow
from opentech.apply.workflow import Phase, Stage, Workflow
from .factories import StageFactory, WorkflowFactory
......@@ -40,3 +40,10 @@ class TestStageCreation(SimpleTestCase):
stage = Stage(name, form)
self.assertEqual(stage.name, name)
self.assertEqual(stage.form, form)
class TestPhaseCreation(SimpleTestCase):
def test_can_create_phase(self):
name = 'the_phase'
phase = Phase(name)
self.assertEqual(phase.name, name)
......@@ -29,3 +29,8 @@ class Stage:
def __init__(self, name: str, form: Form) -> None:
self.name = name
self.form = form
class Phase:
def __init__(self, name: str) -> None:
self.name = name
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