mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Core: Add a test that checks all registered patches matches the name of a registered world (#4633)
Co-authored-by: qwint <qwint.42@gmail.com>
This commit is contained in:
11
test/general/test_patches.py
Normal file
11
test/general/test_patches.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import unittest
|
||||||
|
from worlds.AutoWorld import AutoWorldRegister
|
||||||
|
from worlds.Files import AutoPatchRegister
|
||||||
|
|
||||||
|
|
||||||
|
class TestPatches(unittest.TestCase):
|
||||||
|
def test_patch_name_matches_game(self) -> None:
|
||||||
|
for game_name in AutoPatchRegister.patch_types:
|
||||||
|
with self.subTest(game=game_name):
|
||||||
|
self.assertIn(game_name, AutoWorldRegister.world_types.keys(),
|
||||||
|
f"Patch '{game_name}' does not match the name of any world.")
|
Reference in New Issue
Block a user