From 43594620b163179bf30fc3a0dbc41cc7d7ad0bc0 Mon Sep 17 00:00:00 2001 From: hyungi Date: Thu, 2 Jul 2026 13:11:33 +0900 Subject: [PATCH] =?UTF-8?q?fix(tests):=20rerank=20fixture=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EC=A0=95=EC=A0=95=20=E2=80=94=20captured=5Frespons?= =?UTF-8?q?es.*.raw=20=EA=B0=80=20=EC=8B=A4=EC=9D=91=EB=8B=B5=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- tests/test_rerank_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_rerank_protocol.py b/tests/test_rerank_protocol.py index 330b971..277214d 100644 --- a/tests/test_rerank_protocol.py +++ b/tests/test_rerank_protocol.py @@ -47,7 +47,7 @@ def test_normalize_llamacpp_empty_and_absent_results(): def test_tei_fixture_shape_is_already_contract(): """TEI 캡처 fixture(Phase 2B G0-1 spec 박제)의 실응답이 정규화 없이 계약 형태임을 확인.""" doc = json.loads((FIXTURES / "tei_rerank_response.json").read_text()) - captured = doc["captured_responses"]["baseline_bge_v2_m3"] + captured = doc["captured_responses"]["baseline_bge_v2_m3"]["raw"] assert isinstance(captured, list) and captured assert {"index", "score"} <= set(captured[0]) # spec 문자열도 계약과 일치 (score desc 정렬 포함)