Skip to content

Commit

Permalink
resolve test conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Nov 9, 2023
1 parent 42b1400 commit 1d78419
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ def _get_items(self, item_pool, all_except):
items = self.multiworld.itempool[:]
items = [item for item in items if
item.name not in all_except and not ("Bottle" in item.name and "AnyBottle" in all_except)]
items.extend(ItemFactory(item_pool[0], 1))
items.extend(ItemFactory(item_pool[0], self.multiworld.worlds[1]))
else:
items = ItemFactory(item_pool[0], 1)
items = ItemFactory(item_pool[0], self.multiworld.worlds[1])
return self.get_state(items)

def _get_items_partial(self, item_pool, missing_item):
new_items = item_pool[0].copy()
new_items.remove(missing_item)
items = ItemFactory(new_items, 1)
items = ItemFactory(new_items, self.multiworld.worlds[1])
return self.get_state(items)


Expand Down
2 changes: 1 addition & 1 deletion worlds/alttp/test/options/TestOpenPyramid.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ def testGanonGoalAccess(self):
self.assertFalse(self.can_reach_entrance("Pyramid Hole"))
self.collect_by_name(["Hammer", "Progressive Glove", "Moon Pearl"])
self.assertFalse(self.can_reach_entrance("Pyramid Hole"))
self.multiworld.state.collect(ItemFactory("Beat Agahnim 2", self.world))
self.collect(ItemFactory("Beat Agahnim 2", self.multiworld.worlds[1]))
self.assertTrue(self.can_reach_entrance("Pyramid Hole"))

4 changes: 2 additions & 2 deletions worlds/messenger/test/test_shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class ShopCostTest(MessengerTestBase):
options = {
"shop_price": "random",
"shop_price": 350,
"shuffle_shards": "true",
}

Expand Down Expand Up @@ -46,7 +46,7 @@ def test_strike(self) -> None:

class ShopCostMinTest(ShopCostTest):
options = {
"shop_price": "random",
"shop_price": 350,
"shuffle_seals": "false",
}

Expand Down

0 comments on commit 1d78419

Please sign in to comment.