diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/TestDatafile.py | 7 |
1 files changed, 6 insertions, 1 deletions
| diff --git a/test/TestDatafile.py b/test/TestDatafile.py index 60acb3e..a01ff41 100644 --- a/test/TestDatafile.py +++ b/test/TestDatafile.py | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | import os | 1 | import os |
| 2 | import unittest | 2 | import unittest |
| 3 | 3 | ||
| 4 | from ..static_logic import HASHES | 4 | from ..static_logic import HASHES, PANELS_BY_ROOM |
| 5 | from ..utils.pickle_static_data import hash_file | 5 | from ..utils.pickle_static_data import hash_file |
| 6 | 6 | ||
| 7 | 7 | ||
| @@ -14,3 +14,8 @@ class TestDatafile(unittest.TestCase): | |||
| 14 | "LL1.yaml hash does not match generated.dat. Please regenerate using 'python worlds/lingo/utils/pickle_static_data.py'") | 14 | "LL1.yaml hash does not match generated.dat. Please regenerate using 'python worlds/lingo/utils/pickle_static_data.py'") |
| 15 | self.assertEqual(ids_file_hash, HASHES["ids.yaml"], | 15 | self.assertEqual(ids_file_hash, HASHES["ids.yaml"], |
| 16 | "ids.yaml hash does not match generated.dat. Please regenerate using 'python worlds/lingo/utils/pickle_static_data.py'") | 16 | "ids.yaml hash does not match generated.dat. Please regenerate using 'python worlds/lingo/utils/pickle_static_data.py'") |
| 17 | |||
| 18 | def test_panel_doors_are_set(self) -> None: | ||
| 19 | # This panel is defined earlier in the file than the panel door, so we want to check that the panel door is | ||
| 20 | # correctly applied. | ||
| 21 | self.assertNotEqual(PANELS_BY_ROOM["Outside The Agreeable"]["FIVE (1)"].panel_door, None) | ||
