Skip to content
Snippets Groups Projects

Make workflow accessible via application

Merged Adham Hashibon requested to merge make-workflow-accessible-via-application into master
2 files
+ 31
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -8,6 +8,8 @@ from force_bdss.bdss_application import (
_load_failure_callback,
_import_extensions
)
from force_bdss.core.workflow import Workflow
from force_bdss.tests import fixtures
try:
import mock
@@ -48,3 +50,18 @@ class TestBDSSApplication(unittest.TestCase):
_import_extensions(plugins, ext)
self.assertEqual(plugins[0], plugin)
def test_workflow(self):
with testfixtures.LogCapture():
with warnings.catch_warnings():
warnings.simplefilter("ignore")
app = BDSSApplication(False, fixtures.get("test_empty.json"))
self.assertIsInstance(app.workflow, Workflow)
with testfixtures.LogCapture():
with warnings.catch_warnings():
warnings.simplefilter("ignore")
app = BDSSApplication(True, fixtures.get("test_empty.json"))
self.assertIsInstance(app.workflow, Workflow)
Loading