Skip to content

Commit

Permalink
chore(utils): Updating usage to use a constant (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard authored Oct 17, 2024
1 parent 41ff729 commit 147f3ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import yaml

from devservices.constants import DEVSERVICES_DIR_NAME

TESTING_DIR = os.path.abspath(os.path.dirname(__file__))


Expand All @@ -17,7 +19,7 @@ def get_resource_path(resource_name: str) -> Path:
def create_config_file(
tmp_path: Path, config: dict[str, object] | dict[str, dict[str, object]]
) -> None:
devservices_dir = Path(tmp_path, "devservices")
devservices_dir = Path(tmp_path, DEVSERVICES_DIR_NAME)
devservices_dir.mkdir(parents=True, exist_ok=True)
tmp_file = Path(devservices_dir, "config.yml")
with tmp_file.open("w") as f:
Expand Down

0 comments on commit 147f3ea

Please sign in to comment.