Skip to content

Commit

Permalink
refactor(test_path.py): replace PathConfig with ProjectPathConfig and…
Browse files Browse the repository at this point in the history
… update statements
  • Loading branch information
entelecheia committed Jul 29, 2023
1 parent b8f3556 commit a44c171
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/hyfi/path/test_path.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
from hyfi.path import PathConfig
from hyfi.path import ProjectPathConfig
from hyfi.utils.envs import ENVs
from pathlib import Path
from pprint import pprint


def test_path_config():
config = PathConfig(
_config_name_="__init__",
config = ProjectPathConfig(
project_root="workspace/tmp",
global_hyfi_root=ENVs.expand_posix_vars("$HOME/.hyfi"),
project_workspace_name="testspace",
)
pprint(config.model_dump())
# Test that the default values are set correctly
assert config._config_name_ == "__init__"
assert config._config_name_ == "__project__"
assert config.home == ENVs.expand_posix_vars("$HOME")
assert (
Path(config.project_root).absolute()
Expand Down

0 comments on commit a44c171

Please sign in to comment.