The Messenger: strip generated filler items for a sufficiently small pool (#1907)

* The Messenger: strip generated filler items for a sufficiently small remaining item pool

* rewrite the test for the small chance there's no large currency shards
This commit is contained in:
Aaron Wagener
2023-06-29 07:33:37 -05:00
committed by GitHub
parent 85582b9458
commit 3fba94f000
2 changed files with 19 additions and 10 deletions

View File

@@ -16,6 +16,7 @@ class ShopCostTest(MessengerTestBase):
with self.subTest("has cost", loc=loc):
self.assertFalse(self.can_reach_location(loc))
def testShopPrices(self) -> None:
prices: Dict[str, int] = self.multiworld.worlds[self.player].shop_prices
for loc, price in prices.items():
with self.subTest("prices", loc=loc):
@@ -48,6 +49,15 @@ class ShopCostMinTest(ShopCostTest):
"shop_price": "random",
"shuffle_seals": "false",
}
def testShopRules(self) -> None:
if self.multiworld.worlds[self.player].total_shards:
super().testShopRules()
else:
for loc in SHOP_ITEMS:
loc = f"The Shop - {loc}"
with self.subTest("has cost", loc=loc):
self.assertTrue(self.can_reach_location(loc))
def testDBoost(self) -> None:
pass