From 6b284d2bc53edfd027c7ef7460cc309f6ca17a04 Mon Sep 17 00:00:00 2001 From: dxrpl Date: Wed, 28 Oct 2026 18:27:00 +0100 Subject: [PATCH] test(gallery): enable local image models in the bad-input test --- tests/test_gallery_image_bad_input.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_gallery_image_bad_input.py b/tests/test_gallery_image_bad_input.py index 7762ac64e..5f1177bfe 100644 --- a/tests/test_gallery_image_bad_input.py +++ b/tests/test_gallery_image_bad_input.py @@ -17,6 +17,8 @@ def route(name): def call(name, monkeypatch, body): monkeypatch.setattr(gallery, 'require_privilege', lambda *args: 'alice') + monkeypatch.setattr(gallery, '_local_image_models_enabled', lambda: True) + monkeypatch.setattr(gallery, '_remote_image_ops_base', lambda: '') class Request: async def json(self):