From c9fc446d13c48e9f0aa4e9ef5fa1d26707be73db Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 25 Feb 2021 18:23:19 +0100 Subject: [PATCH] Hollow Knight logic tests (just some samples) --- Adjuster.py | 2 +- test/hollow_knight/TestBasic.py | 11 +++++++++++ test/hollow_knight/__init__.py | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 test/hollow_knight/TestBasic.py create mode 100644 test/hollow_knight/__init__.py diff --git a/Adjuster.py b/Adjuster.py index 002be6ae..01bfdcf8 100755 --- a/Adjuster.py +++ b/Adjuster.py @@ -113,7 +113,7 @@ def adjustGUI(): from argparse import Namespace from Main import __version__ as MWVersion adjustWindow = Tk() - adjustWindow.wm_title("Berserker's Multiworld %s LttP Adjuster" % MWVersion) + adjustWindow.wm_title("Archipelago %s LttP Adjuster" % MWVersion) set_icon(adjustWindow) rom_options_frame, rom_vars, set_sprite = get_rom_options_frame(adjustWindow) diff --git a/test/hollow_knight/TestBasic.py b/test/hollow_knight/TestBasic.py new file mode 100644 index 00000000..a85cd630 --- /dev/null +++ b/test/hollow_knight/TestBasic.py @@ -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"]], + ]) \ No newline at end of file diff --git a/test/hollow_knight/__init__.py b/test/hollow_knight/__init__.py new file mode 100644 index 00000000..842d321b --- /dev/null +++ b/test/hollow_knight/__init__.py @@ -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) \ No newline at end of file