Skip to content

Commit dea89f2

Browse files
alwaysintrebleFlySniper
authored andcommitted
The Messenger: Fix a typo preventing a location from being created (ArchipelagoMW#2110)
* The Messenger: Fix a typo preventing a location from being created * Add a unit test that locations are created
1 parent 61caceb commit dea89f2

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

worlds/messenger/Regions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"Underworld": ["Under Entrance Mega Shard", "Hot Tub Mega Shard", "Projectile Pit Mega Shard"],
7575
"Forlorn Temple": ["Sunny Day Mega Shard", "Down Under Mega Shard"],
7676
"Sunken Shrine": ["Mega Shard of the Moon", "Beginner's Mega Shard", "Mega Shard of the Stars", "Mega Shard of the Sun"],
77-
"RIviere Turquoise Entrance": ["Waterfall Mega Shard"],
77+
"Riviere Turquoise Entrance": ["Waterfall Mega Shard"],
7878
"Riviere Turquoise": ["Quick Restock Mega Shard 1", "Quick Restock Mega Shard 2"],
7979
"Elemental Skylands": ["Earth Mega Shard", "Water Mega Shard"],
8080
}
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from . import MessengerTestBase
2+
from ..SubClasses import MessengerLocation
3+
4+
5+
class LocationsTest(MessengerTestBase):
6+
options = {
7+
"shuffle_shards": "true",
8+
}
9+
10+
@property
11+
def run_default_tests(self) -> bool:
12+
return False
13+
14+
def testLocationsExist(self):
15+
for location in self.multiworld.worlds[1].location_name_to_id:
16+
self.assertIsInstance(self.multiworld.get_location(location, self.player), MessengerLocation)

0 commit comments

Comments
 (0)