mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-22 14:20:39 -07:00
* M10: ProcessingRunner skeleton - Add modules/runtime/runner.py with ProcessingRunner and ProcessingRequest - Wire process_images to delegate through runner (internal only) - Add test/quality/test_processing_runner.py contract test Behavior-preserving. Zero blast radius. All callers unchanged. Made-with: Cursor * M10: Add run1 and toolcalls update Made-with: Cursor * M10: Update Phase III roadmap, add closeout prompt - Phase III: M11 lifecycle, M12 instrumentation, M13 txt2img, M14 API, M15 queue - Phase IV-VII renumbered (M16-M33) - Add M10_closeout_prompt.md for Cursor Made-with: Cursor
26 lines
689 B
Python
26 lines
689 B
Python
"""Contract tests for ProcessingRunner (M10 runner skeleton)."""
|
|
import modules.processing
|
|
from modules.runtime.runner import ProcessingRunner, ProcessingRequest
|
|
|
|
|
|
def test_processing_runner_delegates(monkeypatch):
|
|
"""ProcessingRunner.run delegates to process_images_inner."""
|
|
called = {}
|
|
|
|
def fake_process_images_inner(p):
|
|
called["ok"] = True
|
|
return "result"
|
|
|
|
monkeypatch.setattr(
|
|
modules.processing,
|
|
"process_images_inner",
|
|
fake_process_images_inner,
|
|
)
|
|
|
|
runner = ProcessingRunner()
|
|
request = ProcessingRequest(processing="dummy")
|
|
|
|
result = runner.run(request)
|
|
|
|
assert called["ok"]
|
|
assert result == "result"
|