fix: reset console pages in the index tests

A Sony fixture split by console recorded its pages in the shared map, and the index tests that ran after it linked PlayStation to the split page. They now start from an empty map, and the fixture clears it when done.
This commit is contained in:
Abdessamad Derraz committed 2026-11-04 04:47:01 +01:00
1 parent 36788a3cac
commit 1077d77125
3 files changed
+8 -2

No files matched your search

+3
View File
@@ -165,6 +165,9 @@ class TheSummaryLineIsProse(unittest.TestCase):
class TheIndexNamesEmulatorsAndSystems(unittest.TestCase):
def test_columns_and_counts(self):
# Pages another test split off would send the console elsewhere.
siterender.reset_console_pages()
self.addCleanup(siterender.reset_console_pages)
saved = dict(siterender._system_page_map)
self.addCleanup(siterender.set_system_page_map, saved)
siterender.set_system_page_map({"sony-playstation": ("sony", "PlayStation")})