Skip to content

Commit 3d53cd6

Browse files
byapparovclaude
andcommitted
test: declare alibaba in config for tests added on main (#40)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent e85fae0 commit 3d53cd6

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎packages/cli/test/session/llm.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,6 @@ describe("session.llm.stream", () => {
822822

823823
const providerID = "alibaba"
824824
const modelID = "qwen-plus"
825-
const fixture = await loadFixture(providerID, modelID)
826825

827826
await using tmp = await tmpdir({
828827
init: async (dir) => {
@@ -833,6 +832,7 @@ describe("session.llm.stream", () => {
833832
enabled_providers: [providerID],
834833
provider: {
835834
[providerID]: {
835+
...CONFIG_PROVIDERS[providerID],
836836
options: {
837837
apiKey: "test-key",
838838
baseURL: `${server.url.origin}/v1`,
@@ -847,7 +847,7 @@ describe("session.llm.stream", () => {
847847
await Instance.provide({
848848
directory: tmp.path,
849849
fn: async () => {
850-
const resolved = await Provider.getModel(providerID, fixture.model.id)
850+
const resolved = await Provider.getModel(providerID, modelID)
851851
// an explicit agent allow, so the session rules must be merged after the agent's to win
852852
const agent = {
853853
name: "test",

‎packages/cli/test/session/processor-tool-metadata.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe("session processor doom loop", () => {
112112
await using tmp = await tmpdir({
113113
config: {
114114
enabled_providers: ["alibaba"],
115-
provider: { alibaba: { options: { apiKey: "test-key" } } },
115+
provider: { alibaba: { ...alibabaProvider, options: { apiKey: "test-key" } } },
116116
},
117117
})
118118

‎packages/cli/test/session/prompt.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { MessageV2 } from "../../src/session/message-v2"
1010
import { SessionPrompt } from "../../src/session/prompt"
1111
import { Log } from "../../src/util/log"
1212
import { tmpdir } from "../fixture/fixture"
13+
import { alibabaProvider } from "../fixture/providers"
1314

1415
Log.init({ print: false })
1516

@@ -313,7 +314,9 @@ describe("session.prompt removed tools", () => {
313314
git: true,
314315
config: {
315316
enabled_providers: ["alibaba"],
316-
provider: { alibaba: { options: { apiKey: "test-key", baseURL: `${server.url.origin}/v1` } } },
317+
provider: {
318+
alibaba: { ...alibabaProvider, options: { apiKey: "test-key", baseURL: `${server.url.origin}/v1` } },
319+
},
317320
},
318321
})
319322
await Instance.provide({

0 commit comments

Comments
 (0)