mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 13:33:24 -05:00
fix: refuse a libretro scrape without core info
This commit is contained in:
1 parent
91e113a7d3
commit
2499a0eabc
2 files changed
+57
-58
No files matched your search
@@ -289,3 +289,15 @@ class UnreadableReleaseStopsTheScrape(unittest.TestCase):
|
||||
RuntimeError
|
||||
):
|
||||
Scraper()._fetch_installed_emulators()
|
||||
|
||||
def test_libretro_core_metadata_raises(self):
|
||||
"""libretro dropped every system name and manufacturer when the
|
||||
core-info listing was refused."""
|
||||
from unittest import mock
|
||||
|
||||
from scraper.libretro_scraper import Scraper
|
||||
|
||||
with mock.patch("urllib.request.urlopen", self._refuse), self.assertRaises(
|
||||
RuntimeError
|
||||
):
|
||||
Scraper()._fetch_core_metadata()
|
||||
Reference in new issue
Block a user