Lingo: Fix number hunt issues on panels mode (#4342)

This commit is contained in:
Star Rauchenberger
2024-12-10 14:36:38 -05:00
committed by GitHub
parent 5dd19fccd0
commit 925fb967d3
3 changed files with 16 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
import os
import unittest
from ..static_logic import HASHES
from ..static_logic import HASHES, PANELS_BY_ROOM
from ..utils.pickle_static_data import hash_file
@@ -14,3 +14,8 @@ class TestDatafile(unittest.TestCase):
"LL1.yaml hash does not match generated.dat. Please regenerate using 'python worlds/lingo/utils/pickle_static_data.py'")
self.assertEqual(ids_file_hash, HASHES["ids.yaml"],
"ids.yaml hash does not match generated.dat. Please regenerate using 'python worlds/lingo/utils/pickle_static_data.py'")
def test_panel_doors_are_set(self) -> None:
# This panel is defined earlier in the file than the panel door, so we want to check that the panel door is
# correctly applied.
self.assertNotEqual(PANELS_BY_ROOM["Outside The Agreeable"]["FIVE (1)"].panel_door, None)