fix tests again

This commit is contained in:
espeon65536 2021-06-25 19:59:44 -05:00
parent 44943f6bf8
commit 75891b2d38
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ from BaseClasses import MultiWorld
from worlds import AutoWorld
from worlds.minecraft import MinecraftWorld
from worlds.minecraft.Items import MinecraftItem, item_table
import Options
from worlds.minecraft.Options import AdvancementGoal, CombatDifficulty
# Converts the name of an item into an item object
def MCItemFactory(items, player: int):
@ -32,9 +32,9 @@ class TestMinecraft(TestBase):
exclusion_pools = ['hard', 'insane', 'postgame']
for pool in exclusion_pools:
setattr(self.world, f"include_{pool}_advancements", [False, False])
setattr(self.world, "advancement_goal", {1: Options.AdvancementGoal(30)})
setattr(self.world, "advancement_goal", {1: AdvancementGoal(30)})
setattr(self.world, "shuffle_structures", {1: False})
setattr(self.world, "combat_difficulty", {1: Options.CombatDifficulty(1)}) # normal
setattr(self.world, "combat_difficulty", {1: CombatDifficulty(1)}) # normal
AutoWorld.call_single(self.world, "create_regions", 1)
AutoWorld.call_single(self.world, "generate_basic", 1)
AutoWorld.call_single(self.world, "set_rules", 1)