mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
test: Add clone method to _DummyLoraLoader and import copy.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import logging
|
import logging
|
||||||
|
import copy
|
||||||
|
|
||||||
from py.nodes.utils import nunchaku_load_lora
|
from py.nodes.utils import nunchaku_load_lora
|
||||||
|
|
||||||
@@ -28,6 +29,9 @@ class _DummyModel:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.model = _DummyModelWrapper()
|
self.model = _DummyModelWrapper()
|
||||||
|
|
||||||
|
def clone(self):
|
||||||
|
return copy.deepcopy(self)
|
||||||
|
|
||||||
|
|
||||||
def test_nunchaku_load_lora_skips_missing_lora(monkeypatch, caplog):
|
def test_nunchaku_load_lora_skips_missing_lora(monkeypatch, caplog):
|
||||||
import folder_paths
|
import folder_paths
|
||||||
|
|||||||
Reference in New Issue
Block a user