mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Muse Dash: Fix bad generations occuring due to changing item ids (#2122)
This commit is contained in:
@@ -9,8 +9,8 @@ class DifficultyRanges(MuseDashTestBase):
|
||||
difficulty_max = self.multiworld.song_difficulty_max[1]
|
||||
|
||||
def test_range(inputRange, lower, upper):
|
||||
assert inputRange[0] == lower and inputRange[1] == upper, \
|
||||
f"Output incorrect. Got: {inputRange[0]} to {inputRange[1]}. Expected: {lower} to {upper}"
|
||||
self.assertEqual(inputRange[0], lower)
|
||||
self.assertEqual(inputRange[1], upper)
|
||||
|
||||
songs = muse_dash_world.md_collection.get_songs_with_settings(True, False, inputRange[0], inputRange[1])
|
||||
for songKey in songs:
|
||||
@@ -24,7 +24,7 @@ class DifficultyRanges(MuseDashTestBase):
|
||||
if (song.master is not None and inputRange[0] <= song.master <= inputRange[1]):
|
||||
continue
|
||||
|
||||
assert False, f"Invalid song '{songKey}' was given for range '{inputRange[0]} to {inputRange[1]}'"
|
||||
self.fail(f"Invalid song '{songKey}' was given for range '{inputRange[0]} to {inputRange[1]}'")
|
||||
|
||||
#auto ranges
|
||||
difficulty_choice.value = 0
|
||||
@@ -65,5 +65,5 @@ class DifficultyRanges(MuseDashTestBase):
|
||||
for song_name in muse_dash_world.md_collection.DIFF_OVERRIDES:
|
||||
song = muse_dash_world.md_collection.song_items[song_name]
|
||||
|
||||
assert song.easy is not None and song.hard is not None and song.master is not None, \
|
||||
f"Song '{song_name}' difficulty not set when it should be."
|
||||
self.assertTrue(song.easy is not None and song.hard is not None and song.master is not None,
|
||||
f"Song '{song_name}' difficulty not set when it should be.")
|
||||
|
||||
Reference in New Issue
Block a user