Files
Grinch-AP/worlds/stardew_valley/test/long/TestPreRolledRandomness.py
Jérémie Bolduc 7d5693e0fb Stardew Valley: Move BaseTest out of __init__.py to comply with future conventions (#4991)
* move everything out of init; fix from imports and some typing errors

* why is there a change in multiserver

* fix some relative shits
2025-05-13 09:58:03 +02:00

30 lines
1.1 KiB
Python

import unittest
from typing import ClassVar
from BaseClasses import get_seed
from test.param import classvar_matrix
from ..assertion import WorldAssertMixin
from ..bases import skip_long_tests, SVTestCase, solo_multiworld
from ... import options
if skip_long_tests():
raise unittest.SkipTest("Long tests disabled")
player_options = {
options.EntranceRandomization.internal_name: options.EntranceRandomization.option_buildings,
options.BundleRandomization.internal_name: options.BundleRandomization.option_remixed,
options.BundlePrice.internal_name: options.BundlePrice.option_maximum
}
@classvar_matrix(n=range(1000))
class TestGeneratePreRolledRandomness(WorldAssertMixin, SVTestCase):
n: ClassVar[int]
def test_given_pre_rolled_difficult_randomness_when_generate_then_basic_checks(self):
seed = get_seed()
print(f"Generating solo multiworld with seed {seed} for Stardew Valley...")
with solo_multiworld(player_options, seed=seed, world_caching=False) as (multiworld, _):
self.assert_basic_checks(multiworld)