mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
test: avoid provider policy loading in media reply tests (#122857)
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
committed by
GitHub
parent
a8b05c66d7
commit
01a5bcc5c0
@@ -62,6 +62,13 @@ vi.mock("../../agents/harness/hook-helpers.js", () => ({
|
||||
runAgentHarnessBeforeMessageWriteHook: vi.fn((params: { message: unknown }) => params.message),
|
||||
}));
|
||||
|
||||
// Provider policy projection belongs to its adapter and provider-local suites. These tests
|
||||
// exercise prepared reply orchestration and supply their own model/thinking facts.
|
||||
vi.mock("../../plugins/provider-policy-surface.js", () => ({
|
||||
resolveDirectBundledProviderPolicySurface: () => null,
|
||||
resolveTrustedExternalProviderPolicySurface: () => null,
|
||||
}));
|
||||
|
||||
vi.mock("../../config/sessions/group.js", () => ({
|
||||
resolveGroupSessionKey: vi.fn().mockReturnValue(undefined),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user