pytest_wdl/fixtures.py
def workflow_data_descriptor_file(request: FixtureRequest) -> Union[str, Path]:
    """
    Fixture that provides the path to the JSON file that describes test data files.

    Args:
        request: A FixtureRequest object
    """
    test_data_files = [f"{DEFAULT_TEST_DATA_FILE}.json"]

    if yaml:
        test_data_files.append(f"{DEFAULT_TEST_DATA_FILE}.yaml")

    test_data_paths = []

    for f in test_data_files:
        test_data_paths.extend((Path(f), Path("tests") / f))

    return find_project_path(
        *test_data_files, start=Path(request.fspath.dirpath()), assert_exists=True
    )

    Fixture that provides the path to the JSON file that describes test data files.

    Args:
        request: A FixtureRequest object
    
Fixture that provides the path to the JSON file that describes test data files.
Fixture that provides the path to the JSON file that describes test data files .
def workflow_data_descriptor_file(request: FixtureRequest) -> Union[str, Path]:
    test_data_files = [f"{DEFAULT_TEST_DATA_FILE}.json"]
    if yaml:
        test_data_files.append(f"{DEFAULT_TEST_DATA_FILE}.yaml")
    test_data_paths = []
    for f in test_data_files:
        test_data_paths.extend((Path(f), Path("tests") / f))
    return find_project_path(
        *test_data_files, start=Path(request.fspath.dirpath()), assert_exists=True
    )
def workflow_data_descriptor_file ( request : FixtureRequest ) -> Union [ str , Path ] : test_data_files = [ f"{DEFAULT_TEST_DATA_FILE}.json" ] if yaml : test_data_files . append ( f"{DEFAULT_TEST_DATA_FILE}.yaml" ) test_data_paths = [ ] for f in test_data_files : test_data_paths . extend ( ( Path ( f ) , Path ( "tests" ) / f ) ) return find_project_path ( * test_data_files , start = Path ( request . fspath . dirpath ( ) ) , assert_exists = True )
Fixture that provides the path to the JSON file that describes test data files.
Fixture that provides the path to the JSON file that describes test data files .
"""
    Fixture that provides the path to the JSON file that describes test data files.

    Args:
        request: A FixtureRequest object
    """
request
FixtureRequest
A FixtureRequest object
A FixtureRequest object