mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Three tests reached the public internet on every CI run. `test_update_rom` posts an igdb cover url and never mocked `get_cover`, so the fetch went out; the two lock tests do the same with a manual url. The fix for the manual is not just a decorator: `test_manual.py` patched `get_manual` on the `fs_resource_handler` singleton with `monkeypatch.setattr`, and monkeypatch restores by *setting* the bound method back as an instance attribute, which then shadows a later class-level `patch.object` for the rest of the worker's run. `mock.patch.object` deletes instead, so the patch in test_rom.py now takes effect. Same change for the other singleton patches in that file, which leak the same way. The placeholder host moves to www.screenscraper.fr. `ss.fr` is a live domain-parking host, unrelated to ScreenScraper, and the update path appends `ssid` and `sspassword` to the url before fetching it. The suite now makes no outbound request at all, bar the two ssrf tests that exercise the rejection hook. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>