def test_get_summary(self): flow_config = FlowConfig({ "description": "test description", "steps": { "1": { "flow": "nested_flow_2" } }, }) flow = FlowCoordinator(self.project_config, flow_config, name="test_flow") actual_output = flow.get_summary() expected_output = ("Description: test description" + "\n1) flow: nested_flow_2" + "\n 1) task: pass_name" + "\n 2) flow: nested_flow" + "\n 1) task: pass_name") self.assertEqual(expected_output, actual_output)
def test_get_summary(self): self.project_config.config["flows"]["test"] = { "description": "test description", "steps": { "1": { "flow": "nested_flow_2" } }, } flow_config = self.project_config.get_flow("test") flow = FlowCoordinator(self.project_config, flow_config, name="test_flow") actual_output = flow.get_summary() expected_output = ("Description: test description" + "\n1) flow: nested_flow_2 [from current folder]" + "\n 1) task: pass_name" + "\n 2) flow: nested_flow" + "\n 1) task: pass_name") self.assertEqual(expected_output, actual_output)