From d8d9a4956458ca7015691b6568ccfb56fbfe0c32 Mon Sep 17 00:00:00 2001 From: Aaron Wagener Date: Fri, 25 Aug 2023 15:25:56 -0500 Subject: [PATCH] The Messenger: Fix a typo preventing a location from being created (#2110) * The Messenger: Fix a typo preventing a location from being created * Add a unit test that locations are created --- worlds/messenger/Regions.py | 2 +- worlds/messenger/test/TestLocations.py | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 worlds/messenger/test/TestLocations.py diff --git a/worlds/messenger/Regions.py b/worlds/messenger/Regions.py index 2bfd3cab..88579a97 100644 --- a/worlds/messenger/Regions.py +++ b/worlds/messenger/Regions.py @@ -74,7 +74,7 @@ MEGA_SHARDS: Dict[str, List[str]] = { "Underworld": ["Under Entrance Mega Shard", "Hot Tub Mega Shard", "Projectile Pit Mega Shard"], "Forlorn Temple": ["Sunny Day Mega Shard", "Down Under Mega Shard"], "Sunken Shrine": ["Mega Shard of the Moon", "Beginner's Mega Shard", "Mega Shard of the Stars", "Mega Shard of the Sun"], - "RIviere Turquoise Entrance": ["Waterfall Mega Shard"], + "Riviere Turquoise Entrance": ["Waterfall Mega Shard"], "Riviere Turquoise": ["Quick Restock Mega Shard 1", "Quick Restock Mega Shard 2"], "Elemental Skylands": ["Earth Mega Shard", "Water Mega Shard"], } diff --git a/worlds/messenger/test/TestLocations.py b/worlds/messenger/test/TestLocations.py new file mode 100644 index 00000000..ccb35856 --- /dev/null +++ b/worlds/messenger/test/TestLocations.py @@ -0,0 +1,16 @@ +from . import MessengerTestBase +from ..SubClasses import MessengerLocation + + +class LocationsTest(MessengerTestBase): + options = { + "shuffle_shards": "true", + } + + @property + def run_default_tests(self) -> bool: + return False + + def testLocationsExist(self): + for location in self.multiworld.worlds[1].location_name_to_id: + self.assertIsInstance(self.multiworld.get_location(location, self.player), MessengerLocation)