Missing model download dialog test (#656)

* Test prep

* Add missing model dialog test

* Basic test of download model

* Add comment

* Adjust setting in test

* Change download dir to not interfere with other tests
This commit is contained in:
Chenlei Hu
2024-08-27 17:34:32 -04:00
committed by GitHub
parent 50b418113c
commit 09d8f2a502
6 changed files with 180 additions and 52 deletions

View File

@@ -227,6 +227,20 @@ export const useSettingStore = defineStore('setting', {
type: 'hidden',
defaultValue: 'cover'
})
app.ui.settings.addSetting({
id: 'Comfy.Workflow.ModelDownload.AllowedSources',
name: 'Allowed model download sources',
type: 'hidden',
defaultValue: ['https://huggingface.co/', 'https://civitai.com/']
})
app.ui.settings.addSetting({
id: 'Comfy.Workflow.ModelDownload.AllowedSuffixes',
name: 'Allowed model download suffixes',
type: 'hidden',
defaultValue: ['.safetensors', '.sft']
})
},
set<K extends keyof Settings>(key: K, value: Settings[K]) {