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

Add stage basic tests and model

parent 14deea25
No related branches found
No related tags found
No related merge requests found
from unittest import TestCase
from django.test import SimpleTestCase
from .workflow import Workflow
from .workflow import Workflow, Stage
class TestWorkflowCreation(TestCase):
class TestWorkflowCreation(SimpleTestCase):
def test_can_create_workflow(self):
name = 'single_stage'
workflow = Workflow(name)
self.assertEqual(workflow.name, name)
class TestStageCreation(SimpleTestCase):
def test_can_create_stage(self):
name = 'the_stage'
stage = Stage(name)
self.assertEqual(stage.name, name)
class Workflow:
def __init__(self, name):
self.name = name
class Stage:
def __init__(self, name):
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