tests: add utils.py tests
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
cătălin 2022-08-28 22:24:16 +02:00
commit d9eb99b72e
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
9 changed files with 71 additions and 28 deletions

View file

@ -14,9 +14,7 @@ def resolve_path(path: Path) -> Path:
Returns:
Path: The resolved path
"""
path = Path("~/.config/halig/halig.yml").expanduser()
return path
return Path(os.path.expandvars(path)).expanduser().resolve()
def get_template_data(path: Path) -> str | None: