From 1416f631cc539027b1ad843d9bb9d14c45df7a9d Mon Sep 17 00:00:00 2001 From: Justus Lind Date: Mon, 24 Mar 2025 12:30:44 +1000 Subject: [PATCH] Core: Add a test that checks all registered patches matches the name of a registered world (#4633) Co-authored-by: qwint --- test/general/test_patches.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/general/test_patches.py 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.")