mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
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:
@@ -74,7 +74,7 @@ MEGA_SHARDS: Dict[str, List[str]] = {
|
|||||||
"Underworld": ["Under Entrance Mega Shard", "Hot Tub Mega Shard", "Projectile Pit Mega Shard"],
|
"Underworld": ["Under Entrance Mega Shard", "Hot Tub Mega Shard", "Projectile Pit Mega Shard"],
|
||||||
"Forlorn Temple": ["Sunny Day Mega Shard", "Down Under 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"],
|
"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"],
|
"Riviere Turquoise": ["Quick Restock Mega Shard 1", "Quick Restock Mega Shard 2"],
|
||||||
"Elemental Skylands": ["Earth Mega Shard", "Water Mega Shard"],
|
"Elemental Skylands": ["Earth Mega Shard", "Water Mega Shard"],
|
||||||
}
|
}
|
||||||
|
16
worlds/messenger/test/TestLocations.py
Normal file
16
worlds/messenger/test/TestLocations.py
Normal 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)
|
Reference in New Issue
Block a user