mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Add test locations to region
This commit is contained in:

committed by
Fabian Dill

parent
39869bcdc5
commit
461961c3be
@@ -30,7 +30,9 @@ def generate_locations(count: int, player_id: int, address: int = None, region:
|
|||||||
locations = []
|
locations = []
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
name = "player" + str(player_id) + "_location" + str(i)
|
name = "player" + str(player_id) + "_location" + str(i)
|
||||||
locations.append(Location(player_id, name, address, region))
|
location = Location(player_id, name, address, region)
|
||||||
|
locations.append(location)
|
||||||
|
region.locations.append(location)
|
||||||
return locations
|
return locations
|
||||||
|
|
||||||
|
|
||||||
@@ -103,4 +105,4 @@ class TestBase(unittest.TestCase):
|
|||||||
fill_restrictive(multi_world, multi_world.state, locations, items)
|
fill_restrictive(multi_world, multi_world.state, locations, items)
|
||||||
|
|
||||||
self.assertEqual(loc0.item, item1)
|
self.assertEqual(loc0.item, item1)
|
||||||
self.assertEqual(loc1.item, item0)
|
self.assertEqual(loc1.item, item0)
|
Reference in New Issue
Block a user