feat(short-drama-agent-front): 接入图片持续授权与视频费用审计
This commit is contained in:
1 parent
3915566994
commit
1e9ef33d1d
39 files changed
+3442
-51
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { generationConfigApi } from '@/features/generation-config/api'
|
||||
import { approvedCharacter, imagePreviewFixture } from '../../fixtures/image-preview'
|
||||
import { imageCatalog, generationProfile } from '../../fixtures/generation'
|
||||
import { flushPromises, mount, type VueWrapper } from '@vue/test-utils'
|
||||
@@ -20,6 +21,14 @@ import { identityImageFixture } from '@/features/subject-identity/testing/fixtur
|
||||
import { formFixture } from '@/features/subject-images/testing/fixtures'
|
||||
import { selectControl } from '@/testing/naive'
|
||||
|
||||
/** 模型初值通过正式解析接口读取,保留项目已保存参数。 */
|
||||
beforeEach(() => {
|
||||
vi.spyOn(generationConfigApi, 'resolve').mockResolvedValue({
|
||||
provider: creativeProfile.imageProvider,
|
||||
model: creativeProfile.imageModel,
|
||||
options: { ...creativeProfile.imageOptions }
|
||||
})
|
||||
})
|
||||
/** 生成提交由测试替身接收,绝不调用真实模型。 */
|
||||
const submitGeneration = vi.fn<() => Promise<{ accepted: boolean }>>(async () => ({ accepted: true }))
|
||||
let wrapper: VueWrapper | undefined
|
||||
|
||||
Reference in new issue
Block a user