From 14deea25dbaa352958ed970a9e391651873f82cc Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 12 Dec 2017 10:24:53 +0000 Subject: [PATCH] Add basic test and init of workflow --- opentech/apply/tests.py | 11 +++++++++-- opentech/apply/workflow.py | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 opentech/apply/workflow.py diff --git a/opentech/apply/tests.py b/opentech/apply/tests.py index a79ca8be5..00d7eef50 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 000000000..95b4dbeb3 --- /dev/null +++ b/opentech/apply/workflow.py @@ -0,0 +1,3 @@ +class Workflow: + def __init__(self, name): + self.name = name -- GitLab