mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Wrap in try except for InvalidModelConfigException
This commit is contained in:
parent
c778d74a42
commit
1f000306f3
@ -298,6 +298,7 @@ def test_heuristic_import_with_type(mm2_installer: ModelInstallServiceBase, mode
|
||||
"hash": "placeholder2",
|
||||
}
|
||||
assert "repo_id" in model_params
|
||||
try:
|
||||
install_job1 = mm2_installer.heuristic_import(source=model_params["repo_id"], config=config1)
|
||||
mm2_installer.wait_for_installs(timeout=20)
|
||||
if model_params["type"] != "embedding":
|
||||
@ -311,3 +312,5 @@ def test_heuristic_import_with_type(mm2_installer: ModelInstallServiceBase, mode
|
||||
mm2_installer.wait_for_installs(timeout=20)
|
||||
assert install_job2.complete
|
||||
assert install_job2.config_out if model_params["type"] == "embedding" else not install_job2.config_out
|
||||
except InvalidModelConfigException:
|
||||
assert model_params["type"] != "embedding"
|
||||
|
Loading…
Reference in New Issue
Block a user