11"""Test configuration management."""
22
33from basic_memory .config import BasicMemoryConfig
4-
4+ from pathlib import Path
55
66class TestBasicMemoryConfig :
77 """Test BasicMemoryConfig behavior with BASIC_MEMORY_HOME environment variable."""
@@ -15,7 +15,7 @@ def test_default_behavior_without_basic_memory_home(self, config_home, monkeypat
1515
1616 # Should use the default path (home/basic-memory)
1717 expected_path = (config_home / "basic-memory" ).as_posix ()
18- assert config .projects ["main" ] == expected_path
18+ assert config .projects ["main" ] == Path ( expected_path ). as_posix ()
1919
2020 def test_respects_basic_memory_home_environment_variable (self , config_home , monkeypatch ):
2121 """Test that config respects BASIC_MEMORY_HOME environment variable."""
@@ -38,7 +38,7 @@ def test_model_post_init_respects_basic_memory_home(self, config_home, monkeypat
3838
3939 # model_post_init should have added main project with BASIC_MEMORY_HOME
4040 assert "main" in config .projects
41- assert config .projects ["main" ] == custom_path
41+ assert config .projects ["main" ] == Path ( custom_path ). as_posix ()
4242
4343 def test_model_post_init_fallback_without_basic_memory_home (self , config_home , monkeypatch ):
4444 """Test that model_post_init falls back to default when BASIC_MEMORY_HOME is not set."""
@@ -52,7 +52,7 @@ def test_model_post_init_fallback_without_basic_memory_home(self, config_home, m
5252 # model_post_init should have added main project with default path
5353 expected_path = (config_home / "basic-memory" ).as_posix ()
5454 assert "main" in config .projects
55- assert config .projects ["main" ] == expected_path
55+ assert config .projects ["main" ] == Path ( expected_path ). as_posix ()
5656
5757 def test_basic_memory_home_with_relative_path (self , config_home , monkeypatch ):
5858 """Test that BASIC_MEMORY_HOME works with relative paths."""
0 commit comments