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
This commit is contained in:
Aaron Wagener 2023-08-25 15:25:56 -05:00 committed by GitHub
parent 41a34b140c
commit d8d9a49564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -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"],
}

View File

@ -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)