test(images): record the return route in the legacy contract snapshot; removed_total in the workspace keys (#498)
The scan runner passes returned only when set, so a stand-in events function without that keyword still runs.
This commit is contained in:
+2
-1
@@ -1422,7 +1422,8 @@ class AdminRoutesMixin:
|
||||
|
||||
async def _run_scan_job(self, job, output_dirs=None, returned=None):
|
||||
final = None
|
||||
async for payload in self._scan_images_events(job, output_dirs, returned):
|
||||
extra = {} if returned is None else {"returned": returned}
|
||||
async for payload in self._scan_images_events(job, output_dirs, **extra):
|
||||
job.publish(payload)
|
||||
final = payload.get("type")
|
||||
state = SCAN_FINAL_STATES.get(final, "finished")
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
"POST /prompt_manager/images/generate-thumbnails",
|
||||
"POST /prompt_manager/images/generate-thumbnails/progress",
|
||||
"POST /prompt_manager/images/link",
|
||||
"POST /prompt_manager/images/removed/return",
|
||||
"POST /prompt_manager/images/rescope",
|
||||
"POST /prompt_manager/images/reveal",
|
||||
"POST /prompt_manager/jobs/autotag",
|
||||
|
||||
@@ -3020,6 +3020,8 @@ class TestSharedListing(ImageAPITestCase):
|
||||
"limit",
|
||||
"has_more",
|
||||
"next_cursor",
|
||||
# #498: Show removed images (N).
|
||||
"removed_total",
|
||||
},
|
||||
)
|
||||
_, folders = await self._json("GET", "/prompt_manager/gallery/subfolders")
|
||||
|
||||
Reference in New Issue
Block a user