From e3c7e49214f658aa668573e1757a5d9d967bb3d9 Mon Sep 17 00:00:00 2001 From: BiFangKNT <1320414964@qq.com> Date: Fri, 23 Oct 2026 09:02:23 +0800 Subject: [PATCH] test(provider): initialize Codex requester fixture --- tests/unit_tests/provider/test_codex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/provider/test_codex.py b/tests/unit_tests/provider/test_codex.py index cb0e9e046..062130231 100644 --- a/tests/unit_tests/provider/test_codex.py +++ b/tests/unit_tests/provider/test_codex.py @@ -48,7 +48,7 @@ def requester(monkeypatch, handler): monkeypatch.setattr( httpx, 'AsyncClient', lambda **kwargs: real_client(transport=httpx.MockTransport(handler), **kwargs) ) - obj = object.__new__(CodexRequester) + obj = CodexRequester(SimpleNamespace(), {}) obj.workspace, obj.provider = 'w', 'p' obj._replay = OrderedDict() obj.auth = SimpleNamespace(access=AsyncMock(return_value=TOKENS))