Skip to content

Commit

Permalink
The Messenger: Fix a typo preventing a location from being created (#…
Browse files Browse the repository at this point in the history
…2110)

* The Messenger: Fix a typo preventing a location from being created

* Add a unit test that locations are created
  • Loading branch information
alwaysintreble authored Aug 25, 2023
1 parent 41a34b1 commit d8d9a49
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/messenger/Regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"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"],
}
Expand Down
16 changes: 16 additions & 0 deletions worlds/messenger/test/TestLocations.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit d8d9a49

Please sign in to comment.