fix: address Copilot review — derive MCP version, improve test isolation and portability
This commit is contained in:
@@ -30,8 +30,8 @@ class TestSearchMemories:
|
||||
result = search_memories("code", palace_path, n_results=2)
|
||||
assert len(result["results"]) <= 2
|
||||
|
||||
def test_no_palace_returns_error(self):
|
||||
result = search_memories("anything", "/nonexistent/path")
|
||||
def test_no_palace_returns_error(self, tmp_path):
|
||||
result = search_memories("anything", str(tmp_path / "missing"))
|
||||
assert "error" in result
|
||||
|
||||
def test_result_fields(self, palace_path, seeded_collection):
|
||||
|
||||
Reference in New Issue
Block a user