test: Add clone method to _DummyLoraLoader and import copy.

This commit is contained in:
Will Miao
2025-12-25 21:48:58 +08:00
parent 41759f5e67
commit 84b68cff90

View File

@@ -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