style: ruff format test_mcp_server.py (PR #1320)

This commit is contained in:
igorls
2026-05-02 22:59:50 -03:00
parent e4e25ed186
commit 6ffbf6ffc3
+6 -6
View File
@@ -476,9 +476,9 @@ class TestWriteTools:
assert result1["success"] is True assert result1["success"] is True
assert result2["success"] is True assert result2["success"] is True
assert result1["drawer_id"] != result2["drawer_id"], ( assert (
"Documents with shared header but different content must have distinct drawer IDs" result1["drawer_id"] != result2["drawer_id"]
) ), "Documents with shared header but different content must have distinct drawer IDs"
def test_delete_drawer(self, monkeypatch, config, palace_path, seeded_collection, kg): def test_delete_drawer(self, monkeypatch, config, palace_path, seeded_collection, kg):
_patch_mcp_server(monkeypatch, config, kg) _patch_mcp_server(monkeypatch, config, kg)
@@ -1044,9 +1044,9 @@ class TestCacheInvalidation:
all_calls = captured["get"] + captured["create"] all_calls = captured["get"] + captured["create"]
assert all_calls, "expected get_collection or create_collection to be called" assert all_calls, "expected get_collection or create_collection to be called"
for kwargs in all_calls: for kwargs in all_calls:
assert "embedding_function" in kwargs, ( assert (
f"missing embedding_function= in chromadb call: {kwargs}" "embedding_function" in kwargs
) ), f"missing embedding_function= in chromadb call: {kwargs}"
assert kwargs["embedding_function"] is not None assert kwargs["embedding_function"] is not None
# Same expectation on the create=False (cache-miss) reopen path. # Same expectation on the create=False (cache-miss) reopen path.