From a157f8753c89b9a755e5b811a59209fc9b543813 Mon Sep 17 00:00:00 2001 From: huangruiteng Date: Fri, 6 Nov 2026 21:57:45 +0800 Subject: [PATCH] test(chat): disambiguate imported pytest fixtures Keep the imported fixtures accessible while marking the three intentional parameter-name reuse sites for Ruff F811, restoring kernel-static-checks after #8148. Signed-off-by: huangruiteng --- tests/test_chat_codex_history.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_chat_codex_history.py b/tests/test_chat_codex_history.py index 263c4cdab8..052c6c892e 100644 --- a/tests/test_chat_codex_history.py +++ b/tests/test_chat_codex_history.py @@ -11,7 +11,7 @@ from test_native_steward_private import steward # noqa: F401 -def test_source_revocation_during_history_compaction_preserves_original_audience(steward, monkeypatch): +def test_source_revocation_during_history_compaction_preserves_original_audience(steward, monkeypatch): # noqa: F811 import threading from concurrent.futures import ThreadPoolExecutor @@ -50,7 +50,7 @@ def native_start(**kwargs): @pytest.mark.parametrize("action", ["stop", "close"]) -def test_native_history_preparation_observes_user_stop_before_its_adapter_lock(conversation, monkeypatch, action): +def test_native_history_preparation_observes_user_stop_before_its_adapter_lock(conversation, monkeypatch, action): # noqa: F811 import threading from concurrent.futures import ThreadPoolExecutor @@ -102,7 +102,7 @@ def restore(): @pytest.mark.parametrize("change", ["close", "settings", "requested-model"]) -def test_history_guard_rechecks_after_native_start_before_publishing(conversation, monkeypatch, change): +def test_history_guard_rechecks_after_native_start_before_publishing(conversation, monkeypatch, change): # noqa: F811 from test_chat_manager_model_adoption import Adapter root, store, runtime, session, _ = conversation sid = session["session_id"]