mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: update openai-codex-native-tool-calls test to use profile-scoped OAuth mocks
This commit is contained in:
parent
a0d547034c
commit
bbd0f52f5f
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,8 @@ describe("OpenAiCodexHandler native tool calls", () => {
|
|||
})
|
||||
|
||||
it("yields tool_call_partial chunks when API returns function_call-only response", async () => {
|
||||
vi.spyOn(openAiCodexOAuthManager, "getAccessToken").mockResolvedValue("test-token")
|
||||
vi.spyOn(openAiCodexOAuthManager, "getAccountId").mockResolvedValue("acct_test")
|
||||
vi.spyOn(openAiCodexOAuthManager, "getAccessTokenForProfile").mockResolvedValue("test-token")
|
||||
vi.spyOn(openAiCodexOAuthManager, "getAccountIdForProfile").mockResolvedValue("acct_test")
|
||||
|
||||
// Mock OpenAI SDK streaming (preferred path).
|
||||
;(handler as any).client = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue