예제 #1
0
 def test_flow(self):
     """
     Testing flow creation and task registering
     """
     flow = Flow(workdir=test_dir, manager=TaskManager.from_file(os.path.join(test_dir, "taskmanager.yml")))
     inp = {}
     flow.register_task(input=inp)
     flow.allocate()
     self.assertTrue(flow.allocated)
     self.assertIsInstance(flow[0], Work)
     self.assertIsInstance(flow[0][0], Task)
     self.assertEqual(flow.check_status(), None)
예제 #2
0
 def test_flow(self):
     """
     Testing flow creation and task registering
     """
     flow = Flow(workdir=test_dir,
                 manager=TaskManager.from_file(
                     os.path.join(test_dir, "taskmanager.yml")))
     inp = {}
     flow.register_task(input=inp)
     flow.allocate()
     self.assertTrue(flow.allocated)
     self.assertIsInstance(flow[0], Work)
     self.assertIsInstance(flow[0][0], Task)
     self.assertEqual(flow.check_status(), None)