ytdl-sub/tests/resources.py
Jesse Bannon 73094e79bb
[FEATURE] Plex sanitized title and uid. Add into prebuilt preset (#449)
* [FEATURE] Plex sanitized title and uid. Add into prebuilt preset

* update fixtures, add fixture test

* lint
2023-02-20 10:19:44 -08:00

11 lines
319 B
Python

import shutil
from pathlib import Path
REGENERATE_FIXTURES: bool = False
RESOURCE_PATH = Path("tests/resources")
_FILE_FIXTURE_PATH = RESOURCE_PATH / "file_fixtures"
def copy_file_fixture(fixture_name: str, output_file_path: str | Path) -> None:
shutil.copy(_FILE_FIXTURE_PATH / fixture_name, output_file_path)