mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
test(example-images): allow monkeypatching os.startfile on linux
This commit is contained in:
@@ -48,7 +48,7 @@ async def test_open_folder_requires_existing_model_directory(monkeypatch: pytest
|
||||
startfile_calls.append(path)
|
||||
|
||||
monkeypatch.setattr("subprocess.Popen", DummyPopen)
|
||||
monkeypatch.setattr("os.startfile", dummy_startfile)
|
||||
monkeypatch.setattr("os.startfile", dummy_startfile, raising=False)
|
||||
|
||||
request = JsonRequest({"model_hash": model_hash})
|
||||
response = await ExampleImagesFileManager.open_folder(request)
|
||||
|
||||
Reference in New Issue
Block a user