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)
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)