From 487c058416b700d581be10f9bd17085b9b73d068 Mon Sep 17 00:00:00 2001 From: Jouramie Date: Tue, 9 Jul 2024 23:47:52 -0400 Subject: [PATCH] run UT test on allsanity+mod so it's more meaningfull --- .../test/stability/TestUniversalTracker.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/worlds/stardew_valley/test/stability/TestUniversalTracker.py b/worlds/stardew_valley/test/stability/TestUniversalTracker.py index 2a1bf4f04e27..3e334098341d 100644 --- a/worlds/stardew_valley/test/stability/TestUniversalTracker.py +++ b/worlds/stardew_valley/test/stability/TestUniversalTracker.py @@ -1,16 +1,17 @@ import unittest from unittest.mock import Mock -from .. import SVTestBase, create_args -from ... import STARDEW_VALLEY, options +from .. import SVTestBase, create_args, allsanity_mods_6_x_x +from ... import STARDEW_VALLEY, FarmType, BundleRandomization, EntranceRandomization class TestUniversalTrackerGenerationIsStable(SVTestBase): - options = { - options.EntranceRandomization.internal_name: options.EntranceRandomization.option_buildings, - options.BundleRandomization.internal_name: options.BundleRandomization.option_shuffled, - options.FarmType.internal_name: options.FarmType.option_standard, # Need to choose one otherwise it's random - } + options = allsanity_mods_6_x_x() + options.update({ + EntranceRandomization.internal_name: EntranceRandomization.option_buildings, + BundleRandomization.internal_name: BundleRandomization.option_shuffled, + FarmType.internal_name: FarmType.option_standard, # Need to choose one otherwise it's random + }) def test_all_locations_and_items_are_the_same_between_two_generations(self): # This might open a kivy window temporarily, but it's the only way to test this... @@ -47,4 +48,5 @@ def test_all_locations_and_items_are_the_same_between_two_generations(self): generated_slot_data = generated_multi_world.worlds[1].fill_slot_data() # Just checking slot data should prove that UT generates the same result as AP generation. + self.maxDiff = None self.assertEqual(slot_data, generated_slot_data)