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