async def test_parse_ids_mixed(ids_in, ids_out): """It should parse mixed workflows & tasks.""" workflows, _ = await parse_ids_async(*ids_in, constraint='mixed') assert { workflow_id: [detokenise(tokens) for tokens in tokens_list] for workflow_id, tokens_list in workflows.items() } == ids_out
async def test_parse_ids_mixed_src(ids_in, ids_out, abc_src_dir): """It should parse mixed workflows & tasks from src workflows.""" workflows, _ = await parse_ids_async(*ids_in, constraint='mixed', src=True) assert { workflow_id: [detokenise(tokens) for tokens in tokens_list] for workflow_id, tokens_list in workflows.items() } == ids_out
async def test_parse_ids_tasks(ids_in, ids_out): """It should parse workflow tasks in two formats.""" workflows, _ = await parse_ids_async(*ids_in, constraint='tasks') assert { workflow_id: [detokenise(tokens) for tokens in tokens_list] for workflow_id, tokens_list in workflows.items() } == ids_out