self was BaseTest in base_test and the test class in the actual test, so we couldn't find workflow_spec_service

This commit is contained in:
mike cullerton 2022-02-08 16:35:15 -05:00
parent 2e4bab9d04
commit ccfb4b4cda

View File

@ -39,6 +39,7 @@ class BaseTest(unittest.TestCase):
""" Great class to inherit from, as it sets up and tears down classes """ Great class to inherit from, as it sets up and tears down classes
efficiently when we have a database in place. efficiently when we have a database in place.
""" """
workflow_spec_service = WorkflowSpecService()
if not app.config['TESTING']: if not app.config['TESTING']:
raise (Exception("INVALID TEST CONFIGURATION. This is almost always in import order issue." raise (Exception("INVALID TEST CONFIGURATION. This is almost always in import order issue."
@ -97,7 +98,6 @@ class BaseTest(unittest.TestCase):
db.drop_all() db.drop_all()
def setUp(self): def setUp(self):
self.workflow_spec_service = WorkflowSpecService()
pass pass
def tearDown(self): def tearDown(self):