mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-08 15:08:16 -07:00
- The Shane and Sebastian Portrait filler items werent tagged properly. - The Beach Farm adds one secretsanity check, so it needs to be in the allsanity preset - The Allsanity preset is renamed to "Maxsanity" to encourage better defined terminology and Allsanity means something else - The "All Random" preset has been removed entirely. It has been the cause of too many beginner footguns over the years. People can still achieve the effect manually, but at least they'll have to try a little bit to ruin their own experience.
28 lines
1.5 KiB
Python
28 lines
1.5 KiB
Python
from ...items import items_by_group, Group
|
|
from ...options import TrapDifficulty
|
|
from ...test.bases import SVTestCase, solo_multiworld
|
|
from ...test.options.presets import maxsanity_mods_7_x_x, maxsanity_no_mods_7_x_x
|
|
|
|
|
|
class TestTraps(SVTestCase):
|
|
def test_given_no_traps_when_generate_then_no_trap_in_pool(self):
|
|
world_options = maxsanity_no_mods_7_x_x().copy()
|
|
world_options[TrapDifficulty.internal_name] = TrapDifficulty.option_no_traps
|
|
with solo_multiworld(world_options) as (multi_world, _):
|
|
trap_items = [item_data.name for item_data in items_by_group[Group.TRAP]]
|
|
multiworld_items = [item.name for item in multi_world.get_items()]
|
|
|
|
for item in trap_items:
|
|
with self.subTest(f"{item}"):
|
|
self.assertNotIn(item, multiworld_items)
|
|
|
|
def test_given_traps_when_generate_then_all_traps_in_pool(self):
|
|
trap_option = TrapDifficulty
|
|
world_options = maxsanity_mods_7_x_x()
|
|
world_options.update({TrapDifficulty.internal_name: trap_option.option_easy})
|
|
with solo_multiworld(world_options) as (multi_world, _):
|
|
trap_items = [item_data.name for item_data in items_by_group[Group.TRAP] if Group.DEPRECATED not in item_data.groups]
|
|
multiworld_items = [item.name for item in multi_world.get_items()]
|
|
for item in trap_items:
|
|
with self.subTest(f"Item: {item}"):
|
|
self.assertIn(item, multiworld_items) |