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))