Skip to content

Commit 54152c8

Browse files
HumanBean17claude
andcommitted
fix CI: stub _get_sentence_transformer and add mcp_env fixture to flaky tests
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent d99d6b2 commit 54152c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_mcp_v2_compose.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def test_describe_edge_summary_for_route(kuzu_graph) -> None:
188188

189189

190190
def test_search_populates_symbol_id_when_chunk_rooted_in_symbol(monkeypatch, kuzu_graph) -> None:
191+
monkeypatch.setattr("mcp_v2._get_sentence_transformer", lambda *a, **kw: None)
191192
rows: list[dict[str, Any]] = [
192193
{
193194
"filename": "A.java",
@@ -232,7 +233,7 @@ def test_search_populates_symbol_id_when_chunk_rooted_in_symbol(monkeypatch, kuz
232233
assert all(hit.symbol_id is not None for hit in rooted)
233234

234235

235-
def test_meta_returns_per_edge_type_counts() -> None:
236+
def test_meta_returns_per_edge_type_counts(mcp_env) -> None:
236237
out = _graph_meta_output()
237238
assert out.success is True
238239
assert set(out.edge_counts.keys()) == set(_EDGE_TYPES)

0 commit comments

Comments
 (0)