This allows the tests that depend on input files to run without the need to manuallt dvc-pull them beforehand.
10 lines
297 B
Python
10 lines
297 B
Python
"""Defines constant paths relative to a root path."""
|
|
|
|
from pathlib import Path
|
|
|
|
MODULE_PATH = Path(__file__).resolve().parents[0]
|
|
PACKAGE_ROOT_PATH = MODULE_PATH.parents[0]
|
|
REPO_ROOT_PATH = PACKAGE_ROOT_PATH
|
|
TEST_DIR_PATH = REPO_ROOT_PATH / "test"
|
|
TEST_DATA_DVC = TEST_DIR_PATH / "test_data.dvc"
|