From 61bfa0e6335a966cad4bc46c95e42937653c3f88 Mon Sep 17 00:00:00 2001 From: iomgaa Date: Wed, 15 Jul 2026 06:58:51 -0400 Subject: [PATCH] style: apply ruff format to T6 inference aggregation --- tests/unit/test_inference_pair_aggregate.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/unit/test_inference_pair_aggregate.py b/tests/unit/test_inference_pair_aggregate.py index 05605be..4497afa 100644 --- a/tests/unit/test_inference_pair_aggregate.py +++ b/tests/unit/test_inference_pair_aggregate.py @@ -268,9 +268,7 @@ class TestRunInferencePairEndToEnd: """run_inference pair 端到端:逐题落库不变 + unit 级聚合。""" @pytest.mark.asyncio - async def test_pair_predictions_persisted_per_question( - self, harness_log: HarnessLog - ) -> None: + async def test_pair_predictions_persisted_per_question(self, harness_log: HarnessLog) -> None: """pair 两题各自逐题落 predictions(保留逐题溯源),聚合按 unit。""" llm = AsyncMock() llm.chat.return_value = _make_llm_response(answer="B") @@ -301,18 +299,14 @@ class TestRunInferencePairEndToEnd: assert qids == {"po", "pm"} @pytest.mark.asyncio - async def test_orphan_pair_excluded_single_survives( - self, harness_log: HarnessLog - ) -> None: + async def test_orphan_pair_excluded_single_survives(self, harness_log: HarnessLog) -> None: """run_inference 中孤儿 pair 被剔除、single 仍计入。""" llm = AsyncMock() llm.chat.return_value = _make_llm_response(answer="B") questions = [ _make_question("s1", answer="B"), - _make_question( - "po", answer="B", pair_id="orphan", question_role="pair_original" - ), + _make_question("po", answer="B", pair_id="orphan", question_role="pair_original"), ] result = await run_inference( questions,