diff --git a/test/inverted/TestInverted.py b/test/inverted/TestInverted.py index 0f76b353..39d142b1 100644 --- a/test/inverted/TestInverted.py +++ b/test/inverted/TestInverted.py @@ -4,11 +4,10 @@ from BaseClasses import MultiWorld from worlds.alttp.Dungeons import create_dungeons, get_dungeon_item_pool from worlds.alttp.EntranceShuffle import link_inverted_entrances from worlds.alttp.InvertedRegions import create_inverted_regions -from worlds.alttp.ItemPool import generate_itempool, difficulties +from worlds.alttp.ItemPool import difficulties from worlds.alttp.Items import ItemFactory from worlds.alttp.Regions import mark_light_world_regions from worlds.alttp.Shops import create_shops -from worlds.alttp.Rules import set_rules from test.TestBase import TestBase from worlds import AutoWorld diff --git a/test/inverted/TestInvertedBombRules.py b/test/inverted/TestInvertedBombRules.py index aecab857..fc7e2ad0 100644 --- a/test/inverted/TestInvertedBombRules.py +++ b/test/inverted/TestInvertedBombRules.py @@ -1,4 +1,5 @@ import unittest +from argparse import Namespace from BaseClasses import MultiWorld from worlds.alttp.Dungeons import create_dungeons @@ -7,6 +8,7 @@ from worlds.alttp.EntranceShuffle import connect_entrance, Inverted_LW_Entrances from worlds.alttp.InvertedRegions import create_inverted_regions from worlds.alttp.ItemPool import difficulties from worlds.alttp.Rules import set_inverted_big_bomb_rules +from worlds import AutoWorld class TestInvertedBombRules(unittest.TestCase): @@ -14,6 +16,10 @@ class TestInvertedBombRules(unittest.TestCase): def setUp(self): self.world = MultiWorld(1) self.world.mode[1] = "inverted" + args = Namespace + for name, option in AutoWorld.AutoWorldRegister.world_types["A Link to the Past"].options.items(): + setattr(args, name, {1: option.from_any(option.default)}) + self.world.set_options(args) self.world.difficulty_requirements[1] = difficulties['normal'] create_inverted_regions(self.world, 1) create_dungeons(self.world, 1)