Skip to content

Commit

Permalink
Merge pull request #4 from oedokumaci:dev-ersoy-data-dir
Browse files Browse the repository at this point in the history
ci/cd: add data dir
  • Loading branch information
oedokumaci authored Feb 11, 2024
2 parents eb25049 + 939d80d commit 6e6411b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
1 change: 1 addition & 0 deletions src/template_python/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
CONFIG_DIR: Path = ROOT_DIR / "config"
LOGS_DIR: Path = ROOT_DIR / "logs"
OUTPUTS_DIR: Path = ROOT_DIR / "outputs"
DATA_DIR: Path = ROOT_DIR / "data"
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

import pytest

from template_python.path import CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR, ROOT_DIR
from template_python.path import CONFIG_DIR, DATA_DIR, LOGS_DIR, OUTPUTS_DIR, ROOT_DIR


# Fixture for paths
@pytest.fixture(
params=[ROOT_DIR, CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR],
ids=["root_dir", "config_dir", "logs_dir", "outputs_dir"],
params=[ROOT_DIR, CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR, DATA_DIR],
ids=["root_dir", "config_dir", "logs_dir", "outputs_dir", "data_dir"],
)
def path(request: pytest.FixtureRequest) -> Generator[Path, None, None]:
"""A fixture that provides a path for testing.
Expand Down

0 comments on commit 6e6411b

Please sign in to comment.