Skip to content

Commit

Permalink
move function up to conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Jul 2, 2024
1 parent 8b7a497 commit 45a4075
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class TempDirs(typing.NamedTuple):
toy_data_path: Path


def path_str(dir_path: Path, filename: str) -> str:
return str(dir_path.joinpath(filename))


def pytest_addoption(parser):
"""Sets up optional argument to keep temporary testing directory."""
parser.addoption(
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/test_run_stitchee.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
import concatenator
from concatenator.run_stitchee import parse_args


def path_str(dir_path: Path, filename: str) -> str:
return str(dir_path.joinpath(filename))
from ..conftest import path_str


def test_parser():
Expand Down

0 comments on commit 45a4075

Please sign in to comment.