diff --git a/opentech/apply/tests.py b/opentech/apply/tests.py index a79ca8be565f44aacce95bad20c1ee34d175ed20..00d7eef509f6916f6676ada39ea3813dda3eb8f5 100644 --- a/opentech/apply/tests.py +++ b/opentech/apply/tests.py @@ -1,3 +1,10 @@ -# from django.test import TestCase +from unittest import TestCase -# Create your tests here. +from .workflow import Workflow + + +class TestWorkflowCreation(TestCase): + def test_can_create_workflow(self): + name = 'single_stage' + workflow = Workflow(name) + self.assertEqual(workflow.name, name) diff --git a/opentech/apply/workflow.py b/opentech/apply/workflow.py new file mode 100644 index 0000000000000000000000000000000000000000..95b4dbeb36c64f3df36ade5e3fd7143cfbddc651 --- /dev/null +++ b/opentech/apply/workflow.py @@ -0,0 +1,3 @@ +class Workflow: + def __init__(self, name): + self.name = name