Files
Archipelago/worlds/stardew_valley/test/long/TestModsLong.py
agilbert1412 1de91fab67 Stardew Valley: 7.x.x - The Jojapocalypse Update (#5432)
Major Content update for Stardew Valley

### Features
- New BundleRandomization Value: Meme Bundles - Over 100 custom bundles, designed to be jokes, references, trolls, etc
- New Setting: Bundles Per Room modifier
- New Setting: Backpack Size
- New Setting: Secretsanity - Checks for triggering easter eggs and secrets
- New Setting: Moviesanity - Checks for watching movies and sharing snacks with Villagers
- New Setting: Eatsanity - Checks for eating items
- New Setting: Hatsanity - Checks for wearing Hats
- New Setting: Start Without - Allows you to select any combination of various "starting" items, that you will actually not start with. Notably, tools, backpack slots, Day5 unlocks, etc.
- New Setting: Allowed Filler Items - Allows you to customize the filler items you'll get
- New Setting: Endgame Locations - Checks for various expensive endgame tasks and purchases
- New Shipsanity value: Crops and Fish
- New Settings: Jojapocalypse and settings to customize it
- Bundle Plando: Replaced with BundleWhitelist and BundleBlacklist, for more customization freedom
- Added a couple of Host.yaml settings to help hosts allow or ban specific difficult settings that could cause problems if the people don't know what they are signing up for.

Plus a truckload of improvements on the mod side, not seen in this PR.

### Removed features
- Integration for Stardew Valley Expanded. It is simply disabled, the code is all still there, but I'm extremely tired of providing tech support for it, plus Stardew Valley 1.7 was announced and that will break it again, so I'm done. When a maintainer steps up, it can be re-enabled.
2026-02-15 18:02:21 +01:00

88 lines
3.3 KiB
Python

import unittest
from itertools import combinations
from typing import ClassVar
from BaseClasses import get_seed
from test.param import classvar_matrix
from ..assertion import WorldAssertMixin, ModAssertMixin
from ..bases import skip_long_tests, SVTestCase, solo_multiworld
from ..options.option_names import all_option_choices
from ... import options
from ...mods.mod_data import ModNames, mod_combination_is_valid
from ...options.options import all_mods
@unittest.skip
class TestTroubleshootMods(WorldAssertMixin, ModAssertMixin, SVTestCase):
def test_troubleshoot_option(self):
seed = get_seed(78709133382876990000)
world_options = {
options.EntranceRandomization: options.EntranceRandomization.option_buildings,
options.Mods: ModNames.sve
}
with self.solo_world_sub_test(world_options=world_options, seed=seed, world_caching=False) as (multiworld, _):
self.assert_basic_checks(multiworld)
self.assert_stray_mod_items(world_options[options.Mods], multiworld)
if skip_long_tests():
raise unittest.SkipTest("Long tests disabled")
@classvar_matrix(mod_pair=combinations(sorted(all_mods), 2))
class TestGenerateModsPairs(WorldAssertMixin, ModAssertMixin, SVTestCase):
mod_pair: ClassVar[tuple[str, str]]
def test_given_mod_pairs_when_generate_then_basic_checks(self):
mods = frozenset(self.mod_pair)
if not mod_combination_is_valid(mods):
return
world_options = {
options.Mods.internal_name: mods
}
with solo_multiworld(world_options, world_caching=False) as (multiworld, _):
self.assert_basic_checks(multiworld)
self.assert_stray_mod_items(list(self.mod_pair), multiworld)
@classvar_matrix(mod=all_mods, option_and_choice=all_option_choices)
class TestGenerateModAndOptionChoice(WorldAssertMixin, ModAssertMixin, SVTestCase):
mod: ClassVar[str]
option_and_choice: ClassVar[tuple[str, str]]
def test_given_mod_names_when_generate_paired_with_other_options_then_basic_checks(self):
option, choice = self.option_and_choice
world_options = {
option: choice,
options.Mods.internal_name: self.mod
}
with solo_multiworld(world_options, world_caching=False) as (multiworld, _):
self.assert_basic_checks(multiworld)
self.assert_stray_mod_items(self.mod, multiworld)
@classvar_matrix(goal=options.Goal.options.keys(), option_and_choice=all_option_choices)
class TestGenerateAllGoalAndAllOptionWithAllModsWithoutQuest(WorldAssertMixin, ModAssertMixin, SVTestCase):
goal = ClassVar[str]
option_and_choice = ClassVar[tuple[str, str]]
def test_given_no_quest_all_mods_when_generate_with_all_goals_then_basic_checks(self):
option, choice = self.option_and_choice
if option == options.QuestLocations.internal_name:
self.skipTest("QuestLocations are disabled")
world_options = {
options.Goal.internal_name: self.goal,
option: choice,
options.QuestLocations.internal_name: -1,
options.Mods.internal_name: frozenset(options.all_mods_except_invalid_combinations),
}
with solo_multiworld(world_options, world_caching=False) as (multiworld, _):
self.assert_basic_checks(multiworld)