Hollow Knight logic tests (just some samples)
This commit is contained in:
parent
e5e70db380
commit
c9fc446d13
|
@ -113,7 +113,7 @@ def adjustGUI():
|
||||||
from argparse import Namespace
|
from argparse import Namespace
|
||||||
from Main import __version__ as MWVersion
|
from Main import __version__ as MWVersion
|
||||||
adjustWindow = Tk()
|
adjustWindow = Tk()
|
||||||
adjustWindow.wm_title("Berserker's Multiworld %s LttP Adjuster" % MWVersion)
|
adjustWindow.wm_title("Archipelago %s LttP Adjuster" % MWVersion)
|
||||||
set_icon(adjustWindow)
|
set_icon(adjustWindow)
|
||||||
|
|
||||||
rom_options_frame, rom_vars, set_sprite = get_rom_options_frame(adjustWindow)
|
rom_options_frame, rom_vars, set_sprite = get_rom_options_frame(adjustWindow)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
from test.hollow_knight import TestVanilla
|
||||||
|
|
||||||
|
|
||||||
|
class TestBasic(TestVanilla):
|
||||||
|
|
||||||
|
def testSimple(self):
|
||||||
|
self.run_location_tests([
|
||||||
|
["Focus", True, []],
|
||||||
|
["200_Geo-False_Knight_Chest", True, [], []],
|
||||||
|
["380_Geo-Soul_Master_Chest", False, [], ["Mantis_Claw"]],
|
||||||
|
])
|
|
@ -0,0 +1,14 @@
|
||||||
|
from BaseClasses import MultiWorld
|
||||||
|
from worlds.hk.Regions import create_regions
|
||||||
|
from worlds.hk import gen_hollow
|
||||||
|
|
||||||
|
from test.TestBase import TestBase
|
||||||
|
|
||||||
|
|
||||||
|
class TestVanilla(TestBase):
|
||||||
|
def setUp(self):
|
||||||
|
self.world = MultiWorld(1, {1: 'vanilla'}, {1: 'noglitches'}, {1: 'open'}, {1: 'random'}, {1: 'normal'}, {1: 'normal'}, {1:False}, {1: 'on'}, {1: 'ganon'}, 'balanced', {1: 'items'},
|
||||||
|
True, {1:False}, False, None, {1:False})
|
||||||
|
self.world.game[1] = "Hollow Knight"
|
||||||
|
create_regions(self.world, 1)
|
||||||
|
gen_hollow(self.world, 1)
|
Loading…
Reference in New Issue