Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
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