Stardew Valley: Fixed Traveling merchant flaky test (#5434)

* - Made the traveling cart test not be flaky due to worlds caching

# Conflicts:
#	worlds/stardew_valley/rules.py

* - Made the traveling merchant test less flaky

# Conflicts:
#	worlds/stardew_valley/test/rules/TestTravelingMerchant.py
This commit is contained in:
agilbert1412
2025-09-21 12:58:15 -04:00
committed by GitHub
parent 7badc3e745
commit 1bd44e1e35
2 changed files with 6 additions and 1 deletions

View File

@@ -1,8 +1,13 @@
from ..bases import SVTestBase
from ... import SeasonRandomization, EntranceRandomization
from ...locations import location_table, LocationTags
class TestTravelingMerchant(SVTestBase):
options = {
SeasonRandomization: SeasonRandomization.option_randomized_not_winter,
EntranceRandomization: EntranceRandomization.option_disabled,
}
def test_purchase_from_traveling_merchant_requires_money(self):
traveling_merchant_location_names = [l for l in self.get_real_location_names() if LocationTags.TRAVELING_MERCHANT in location_table[l].tags]