mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
test: align codex auth hint expectation
This commit is contained in:
@@ -107,6 +107,7 @@ export function describeOpenAIProviderCatalogContract() {
|
||||
const { openaiProvider } = await contractDepsPromise;
|
||||
expectCodexMissingAuthHint(
|
||||
(params) => openaiProvider.buildMissingAuthMessage?.(params.context) ?? undefined,
|
||||
"openai-codex/gpt-5.5",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ export function expectCodexMissingAuthHint(
|
||||
listProfileIds: (providerId: string) => string[];
|
||||
};
|
||||
}) => string | undefined,
|
||||
expectedModel = "openai/gpt-5.5",
|
||||
) {
|
||||
expect(
|
||||
buildProviderMissingAuthMessageWithPlugin({
|
||||
@@ -46,7 +47,7 @@ export function expectCodexMissingAuthHint(
|
||||
listProfileIds: (providerId) => (providerId === "openai-codex" ? ["p1"] : []),
|
||||
},
|
||||
}),
|
||||
).toContain("openai/gpt-5.5");
|
||||
).toContain(expectedModel);
|
||||
}
|
||||
|
||||
export function expectCodexBuiltInSuppression(
|
||||
|
||||
Reference in New Issue
Block a user