Skip to content

repro_scripts

A plugin that generates a test reproduction script PYTEST_DONT_REWRITE

SCRIPT_POSTFIX module-attribute #

SCRIPT_POSTFIX = '.script.sh'

dump_test_item_scripts #

dump_test_item_scripts(
    test_item_scripts_dir: Path, script: str
) -> None

Used to dump test scripts to the scripts directory

get_exports_str #

get_exports_str(env: dict) -> str

get_test_item_script_path #

get_test_item_script_path(
    test_item_scripts_dir: str | Path,
) -> Path

hide_path_root #

hide_path_root(
    path_to_resolve: Path, root_path: Path
) -> str

load_test_item_script #

load_test_item_script(test_item_scripts_dir: Path) -> str

Used to load test dependency script from scripts directory

pytest_tw_prepare_test_item_repro_script #

pytest_tw_prepare_test_item_repro_script(item: Item) -> str