mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-29 10:23:29 +08:00
test: mock torch in cache middleware tests
This commit is contained in:
parent
6c26a501c8
commit
180e19e923
@ -12,6 +12,8 @@ with (
|
|||||||
patch("app.frontend_management.FrontendManager"),
|
patch("app.frontend_management.FrontendManager"),
|
||||||
patch("utils.install_util.get_missing_requirements_message"),
|
patch("utils.install_util.get_missing_requirements_message"),
|
||||||
patch("utils.install_util.requirements_path"),
|
patch("utils.install_util.requirements_path"),
|
||||||
|
patch("comfy.model_management.get_torch_device"),
|
||||||
|
patch("comfy.model_management.get_total_memory", return_value=1024 * 1024 * 1024),
|
||||||
):
|
):
|
||||||
from server import cache_control, ONE_HOUR, ONE_DAY, IMG_EXTENSIONS
|
from server import cache_control, ONE_HOUR, ONE_DAY, IMG_EXTENSIONS
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user