pytest_wdl/fixtures.py
def workflow_runner(
    request: FixtureRequest,
    project_root: Union[str, Path],
    import_dirs: List[Union[str, Path]],
    user_config: UserConfiguration,
    default_executors: Sequence[str],
    subtests: SubTests,
):
    """
    Provides a callable that runs a workflow. The callable has the same signature as
    `Executor.run_workflow`, but takes an additional keyword argument `executors`,
    a sequence of strings, which allows overriding the names of the executors to use.

    If multiple executors are specified, the tests are run using the `subtests`
    fixture of the `pytest-subtests` plugin.

    Args:
        request: A FixtureRequest object.
        project_root: Project root directory.
        import_dirs: Directories from which to import WDL scripts.
        user_config: A UserConfiguration object.
        default_executors: Names of executors to use when executor name isn't passed to
            the `workflow_runner` callable.
        subtests: A SubTests object.

    Returns:
        A generator over the results of calling the workflow with each executor. Each
        value is a tuple `(executor_name, execution_dir, outputs)`, where
        `execution_dir` is the root directory where the task/workflow was run (the
        structure of the directory is executor-dependent) and `outputs` is a dict of
        the task/workflow outputs.
    """
    return WorkflowRunner(
        default_executors=default_executors,
        wdl_search_paths=[Path(request.fspath.dirpath()), project_root],
        import_dirs=[ensure_path(d, is_file=False, exists=True) for d in import_dirs],
        user_config=user_config,
        subtests=subtests,
    )

    Provides a callable that runs a workflow. The callable has the same signature as
    `Executor.run_workflow`, but takes an additional keyword argument `executors`,
    a sequence of strings, which allows overriding the names of the executors to use.

    If multiple executors are specified, the tests are run using the `subtests`
    fixture of the `pytest-subtests` plugin.

    Args:
        request: A FixtureRequest object.
        project_root: Project root directory.
        import_dirs: Directories from which to import WDL scripts.
        user_config: A UserConfiguration object.
        default_executors: Names of executors to use when executor name isn't passed to
            the `workflow_runner` callable.
        subtests: A SubTests object.

    Returns:
        A generator over the results of calling the workflow with each executor. Each
        value is a tuple `(executor_name, execution_dir, outputs)`, where
        `execution_dir` is the root directory where the task/workflow was run (the
        structure of the directory is executor-dependent) and `outputs` is a dict of
        the task/workflow outputs.
    
Provides a callable that runs a workflow. The callable has the same signature as
`Executor.run_workflow`, but takes an additional keyword argument `executors`,
a sequence of strings, which allows overriding the names of the executors to use.

If multiple executors are specified, the tests are run using the `subtests`
fixture of the `pytest-subtests` plugin.
Provides a callable that runs a workflow . The callable has the same signature as ` Executor . run_workflow ` but takes an additional keyword argument ` executors ` a sequence of strings which allows overriding the names of the executors to use . If multiple executors are specified the tests are run using the ` subtests ` fixture of the ` pytest - subtests ` plugin .
def workflow_runner(
    request: FixtureRequest,
    project_root: Union[str, Path],
    import_dirs: List[Union[str, Path]],
    user_config: UserConfiguration,
    default_executors: Sequence[str],
    subtests: SubTests,
):
    return WorkflowRunner(
        default_executors=default_executors,
        wdl_search_paths=[Path(request.fspath.dirpath()), project_root],
        import_dirs=[ensure_path(d, is_file=False, exists=True) for d in import_dirs],
        user_config=user_config,
        subtests=subtests,
    )
def workflow_runner ( request : FixtureRequest , project_root : Union [ str , Path ] , import_dirs : List [ Union [ str , Path ] ] , user_config : UserConfiguration , default_executors : Sequence [ str ] , subtests : SubTests , ) : return WorkflowRunner ( default_executors = default_executors , wdl_search_paths = [ Path ( request . fspath . dirpath ( ) ) , project_root ] , import_dirs = [ ensure_path ( d , is_file = False , exists = True ) for d in import_dirs ] , user_config = user_config , subtests = subtests , )
Provides a callable that runs a workflow.
Provides a callable that runs a workflow .
"""
    Provides a callable that runs a workflow. The callable has the same signature as
    `Executor.run_workflow`, but takes an additional keyword argument `executors`,
    a sequence of strings, which allows overriding the names of the executors to use.

    If multiple executors are specified, the tests are run using the `subtests`
    fixture of the `pytest-subtests` plugin.

    Args:
        request: A FixtureRequest object.
        project_root: Project root directory.
        import_dirs: Directories from which to import WDL scripts.
        user_config: A UserConfiguration object.
        default_executors: Names of executors to use when executor name isn't passed to
            the `workflow_runner` callable.
        subtests: A SubTests object.

    Returns:
        A generator over the results of calling the workflow with each executor. Each
        value is a tuple `(executor_name, execution_dir, outputs)`, where
        `execution_dir` is the root directory where the task/workflow was run (the
        structure of the directory is executor-dependent) and `outputs` is a dict of
        the task/workflow outputs.
    """
A generator over the results of calling the workflow with each executor. Each
value is a tuple `(executor_name, execution_dir, outputs)`, where
`execution_dir` is the root directory where the task/workflow was run (the
structure of the directory is executor-dependent) and `outputs` is a dict of
the task/workflow outputs.
A generator over the results of calling the workflow with each executor . Each value is a tuple ` ( executor_name execution_dir outputs ) ` where ` execution_dir ` is the root directory where the task / workflow was run ( the structure of the directory is executor - dependent ) and ` outputs ` is a dict of the task / workflow outputs .
request
FixtureRequest
A FixtureRequest object.
A FixtureRequest object .
project_root
Union[str, Path]
Project root directory.
Project root directory .
import_dirs
List[Union[str, Path]]
Directories from which to import WDL scripts.
Directories from which to import WDL scripts .
user_config
UserConfiguration
A UserConfiguration object.
A UserConfiguration object .
default_executors
Sequence[str]
Names of executors to use when executor name isn't passed to
the `workflow_runner` callable.
Names of executors to use when executor name isn ' t passed to the ` workflow_runner ` callable .
subtests
SubTests
A SubTests object.
A SubTests object .