diff --git a/test/general/test_patches.py b/test/general/test_patches.py new file mode 100644 index 00000000..09782b8d --- /dev/null +++ b/test/general/test_patches.py @@ -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.")