From e9aee194335a446787f2e2a007ff28e11269f385 Mon Sep 17 00:00:00 2001 From: Igor Lins e Silva <4753812+igorls@users.noreply.github.com> Date: Thu, 7 May 2026 09:10:22 -0300 Subject: [PATCH] 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. --- tests/test_mcp_server.py | 6 +++--- tests/test_searcher.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_mcp_server.py b/tests/test_mcp_server.py index 613cc23..1f47192 100644 --- a/tests/test_mcp_server.py +++ b/tests/test_mcp_server.py @@ -523,9 +523,9 @@ class TestWriteTools: assert result1["success"] is True assert result2["success"] is True - assert result1["drawer_id"] != result2["drawer_id"], ( - "Documents with shared header but different content must have distinct drawer IDs" - ) + assert ( + 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): _patch_mcp_server(monkeypatch, config, kg) diff --git a/tests/test_searcher.py b/tests/test_searcher.py index 60bef9f..f4d46a0 100644 --- a/tests/test_searcher.py +++ b/tests/test_searcher.py @@ -327,9 +327,9 @@ class TestSearchCLI: captured = capsys.readouterr() first_block, _, _ = captured.out.partition("[2]") # Lexical match must rank first - assert "b.md" in first_block, ( - f"expected lexical match 'b.md' at rank 1, got:\n{captured.out}" - ) + assert ( + "b.md" in first_block + ), f"expected lexical match 'b.md' at rank 1, got:\n{captured.out}" # Non-zero bm25 reported assert "bm25=" in first_block assert "bm25=0.0" not in first_block