fix(tests): apply ruff format after rebase resolution
The collection_name plumbing rebase produced a few unformatted blocks in test_mcp_server.py and test_searcher.py; bringing them in line with the 0.4.x CI pin so test-windows / lint stay green.
This commit is contained in:
@@ -523,9 +523,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)
|
||||||
|
|||||||
@@ -327,9 +327,9 @@ class TestSearchCLI:
|
|||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
first_block, _, _ = captured.out.partition("[2]")
|
first_block, _, _ = captured.out.partition("[2]")
|
||||||
# Lexical match must rank first
|
# Lexical match must rank first
|
||||||
assert "b.md" in first_block, (
|
assert (
|
||||||
f"expected lexical match 'b.md' at rank 1, got:\n{captured.out}"
|
"b.md" in first_block
|
||||||
)
|
), f"expected lexical match 'b.md' at rank 1, got:\n{captured.out}"
|
||||||
# Non-zero bm25 reported
|
# Non-zero bm25 reported
|
||||||
assert "bm25=" in first_block
|
assert "bm25=" in first_block
|
||||||
assert "bm25=0.0" not in first_block
|
assert "bm25=0.0" not in first_block
|
||||||
|
|||||||
Reference in New Issue
Block a user