mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-22 06:10:51 -07:00
fix(M10): defer modules.processing import in test_processing_runner (#28)
Quality tests fail during collection because test_processing_runner imports modules.processing at module level, which triggers sd_samplers before shared.opts is initialized. Defer import to inside test and add initialize fixture so webui/opts are loaded first. Made-with: Cursor
This commit is contained in:
parent
880723f100
commit
0d11b587ca
1 changed files with 3 additions and 2 deletions
|
|
@ -1,10 +1,11 @@
|
|||
"""Contract tests for ProcessingRunner (M10 runner skeleton)."""
|
||||
import modules.processing
|
||||
from modules.runtime.runner import ProcessingRunner, ProcessingRequest
|
||||
|
||||
|
||||
def test_processing_runner_delegates(monkeypatch):
|
||||
def test_processing_runner_delegates(monkeypatch, initialize):
|
||||
"""ProcessingRunner.run delegates to process_images_inner."""
|
||||
import modules.processing
|
||||
|
||||
called = {}
|
||||
|
||||
def fake_process_images_inner(p):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue