Skip to content

Commit

Permalink
Fix config file not found in test dir for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-florentin-charles committed Jul 26, 2023
1 parent 9b2f6f5 commit 87a24b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from yaml import safe_load

CONFIG_FILE_PATH: str = './config.yaml'
CONFIG_FILE_PATH: str = 'config.yaml'
UTF_8: str = 'utf-8'
MODE: str = 'rt'

Expand Down
2 changes: 1 addition & 1 deletion tst/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from src.config import Config, CONFIG_FILE_PATH

cfg: Config = Config(f"../src/{CONFIG_FILE_PATH}")
cfg: Config = Config(f"src/{CONFIG_FILE_PATH}")


class TestConfig:
Expand Down

0 comments on commit 87a24b1

Please sign in to comment.