Files
hermes-webui/tests/test_issue2840_windows_hermes_home_defaults.py
2026-05-25 01:58:32 +00:00

16 lines
429 B
Python

from pathlib import Path
import api.config as config
import api.profiles as profiles
def test_profiles_unwrap_profile_home_to_base():
base = Path('/tmp/hermes-base')
profile_home = base / 'profiles' / 'webui'
assert profiles._unwrap_profile_home_to_base(profile_home) == base
def test_default_hermes_home_returns_path_object():
home = config._platform_default_hermes_home()
assert isinstance(home, Path)