mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 12:36:55 +02:00
test(extensions): keep generation helper out of discovery
This commit is contained in:
@@ -19,9 +19,9 @@ import {
|
||||
registerProviderPlugin,
|
||||
requireRegisteredProvider,
|
||||
} from "../test/helpers/plugins/provider-registration.js";
|
||||
import { maybeLoadShellEnvForGenerationProviders } from "./generation-live-test-helpers.js";
|
||||
import googlePlugin from "./google/index.js";
|
||||
import minimaxPlugin from "./minimax/index.js";
|
||||
import { maybeLoadShellEnvForGenerationProviders } from "./test-support/generation-live-test-helpers.js";
|
||||
|
||||
const LIVE = isLiveTestEnabled();
|
||||
const REQUIRE_PROFILE_KEYS =
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { loadShellEnvFallback } from "../src/infra/shell-env.js";
|
||||
import { getProviderEnvVars } from "../src/secrets/provider-env-vars.js";
|
||||
import { loadShellEnvFallback } from "../../src/infra/shell-env.js";
|
||||
import { getProviderEnvVars } from "../../src/secrets/provider-env-vars.js";
|
||||
|
||||
export function maybeLoadShellEnvForGenerationProviders(providerIds: string[]): void {
|
||||
const expectedKeys = [
|
||||
@@ -42,12 +42,12 @@ import {
|
||||
import alibabaPlugin from "./alibaba/index.js";
|
||||
import byteplusPlugin from "./byteplus/index.js";
|
||||
import falPlugin from "./fal/index.js";
|
||||
import { maybeLoadShellEnvForGenerationProviders } from "./generation-live-test-helpers.js";
|
||||
import googlePlugin from "./google/index.js";
|
||||
import minimaxPlugin from "./minimax/index.js";
|
||||
import openaiPlugin from "./openai/index.js";
|
||||
import qwenPlugin from "./qwen/index.js";
|
||||
import runwayPlugin from "./runway/index.js";
|
||||
import { maybeLoadShellEnvForGenerationProviders } from "./test-support/generation-live-test-helpers.js";
|
||||
import togetherPlugin from "./together/index.js";
|
||||
import vydraPlugin from "./vydra/index.js";
|
||||
import xaiPlugin from "./xai/index.js";
|
||||
|
||||
Reference in New Issue
Block a user