Files
romm/backend/tests/handler
Georges-Antoine Assi d9040b29cf fix(screenscraper): re-add user credentials in rom update path + tests
The rom update endpoint downloads SS media via store_media_file without
re-attaching the user credentials that were stripped before storage, so
edit/update flows fall back to the anonymous quota. Wrap the URL with
add_ss_auth_to_url at the call site, matching the existing scan path.

Add unit tests covering the new URL helpers and edge cases:

- test_base_handler: strip/restore sensitive query params, including
  case-insensitive key matching, no-duplicate restoration, special-char
  encoding, blank values, and URL-component preservation.
- test_ss_handler: add_ss_auth_to_url honors empty user/password,
  doesn't duplicate pre-existing creds, handles the storage-shaped
  stripped URL, and round-trips with extract_media_from_ss_game so the
  stored URL never carries user creds while the download URL uses the
  current runtime creds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 19:50:23 -04:00
..
2026-03-15 09:34:48 -04:00
2026-03-22 17:17:14 -04:00
2026-05-21 17:19:12 -04:00
2026-03-22 16:30:14 -04:00
2026-04-12 09:50:54 -04:00
2026-05-21 17:59:44 -04:00