Skip to content

Commit

Permalink
fix(tests): fix project root path in test PathConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jun 26, 2023
1 parent 7981cef commit 32d49e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/hyfi/path/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

def test_path_config():
config = PathConfig(
project_root="tmp",
project_root="workspace/tmp",
global_hyfi_root=ENVs.expand_posix_vars("$HOME/.hyfi"),
project_workspace_name="testspace",
)
pprint(config.dict())
# Test that the default values are set correctly
assert config.config_name == "__init__"
assert config.home == ENVs.expand_posix_vars("$HOME")
assert Path(config.project_root).absolute() == (Path.cwd() / "tmp").absolute()
assert Path(config.project_root).absolute() == (Path.cwd() / "workspace/tmp").absolute()
assert (
Path(config.project_workspace_root).absolute()
== Path.cwd().absolute() / "tmp/testspace"
== Path.cwd().absolute() / "workspace/tmp/testspace"
)

# Test that the log_dir and cache_dir properties return the correct values
Expand Down

0 comments on commit 32d49e1

Please sign in to comment.