diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/TestDoors.py | 56 | ||||
| -rw-r--r-- | test/TestOptions.py | 17 | ||||
| -rw-r--r-- | test/TestOrangeTower.py | 2 | ||||
| -rw-r--r-- | test/TestPanelsanity.py | 2 | ||||
| -rw-r--r-- | test/TestPilgrimage.py | 8 | ||||
| -rw-r--r-- | test/TestProgressive.py | 7 | ||||
| -rw-r--r-- | test/TestSunwarps.py | 21 | 
7 files changed, 91 insertions, 22 deletions
| diff --git a/test/TestDoors.py b/test/TestDoors.py index f496c5f..cfbd7f3 100644 --- a/test/TestDoors.py +++ b/test/TestDoors.py | |||
| @@ -3,7 +3,7 @@ from . import LingoTestBase | |||
| 3 | 3 | ||
| 4 | class TestRequiredRoomLogic(LingoTestBase): | 4 | class TestRequiredRoomLogic(LingoTestBase): | 
| 5 | options = { | 5 | options = { | 
| 6 | "shuffle_doors": "complex", | 6 | "shuffle_doors": "doors", | 
| 7 | "shuffle_colors": "false", | 7 | "shuffle_colors": "false", | 
| 8 | } | 8 | } | 
| 9 | 9 | ||
| @@ -50,7 +50,7 @@ class TestRequiredRoomLogic(LingoTestBase): | |||
| 50 | 50 | ||
| 51 | class TestRequiredDoorLogic(LingoTestBase): | 51 | class TestRequiredDoorLogic(LingoTestBase): | 
| 52 | options = { | 52 | options = { | 
| 53 | "shuffle_doors": "complex", | 53 | "shuffle_doors": "doors", | 
| 54 | "shuffle_colors": "false", | 54 | "shuffle_colors": "false", | 
| 55 | } | 55 | } | 
| 56 | 56 | ||
| @@ -78,7 +78,8 @@ class TestRequiredDoorLogic(LingoTestBase): | |||
| 78 | 78 | ||
| 79 | class TestSimpleDoors(LingoTestBase): | 79 | class TestSimpleDoors(LingoTestBase): | 
| 80 | options = { | 80 | options = { | 
| 81 | "shuffle_doors": "simple", | 81 | "shuffle_doors": "doors", | 
| 82 | "group_doors": "true", | ||
| 82 | "shuffle_colors": "false", | 83 | "shuffle_colors": "false", | 
| 83 | } | 84 | } | 
| 84 | 85 | ||
| @@ -90,3 +91,52 @@ class TestSimpleDoors(LingoTestBase): | |||
| 90 | self.assertTrue(self.multiworld.state.can_reach("Outside The Wanderer", "Region", self.player)) | 91 | self.assertTrue(self.multiworld.state.can_reach("Outside The Wanderer", "Region", self.player)) | 
| 91 | self.assertTrue(self.multiworld.state.can_reach("Orange Tower Third Floor", "Region", self.player)) | 92 | self.assertTrue(self.multiworld.state.can_reach("Orange Tower Third Floor", "Region", self.player)) | 
| 92 | 93 | ||
| 94 | |||
| 95 | class TestPanels(LingoTestBase): | ||
| 96 | options = { | ||
| 97 | "shuffle_doors": "panels" | ||
| 98 | } | ||
| 99 | |||
| 100 | def test_requirement(self): | ||
| 101 | self.assertFalse(self.can_reach_location("Starting Room - HIDDEN")) | ||
| 102 | self.assertFalse(self.can_reach_location("Hidden Room - OPEN")) | ||
| 103 | self.assertFalse(self.can_reach_location("The Seeker - Achievement")) | ||
| 104 | |||
| 105 | self.collect_by_name("Starting Room - HIDDEN (Panel)") | ||
| 106 | self.assertTrue(self.can_reach_location("Starting Room - HIDDEN")) | ||
| 107 | self.assertFalse(self.can_reach_location("Hidden Room - OPEN")) | ||
| 108 | self.assertFalse(self.can_reach_location("The Seeker - Achievement")) | ||
| 109 | |||
| 110 | self.collect_by_name("Hidden Room - OPEN (Panel)") | ||
| 111 | self.assertTrue(self.can_reach_location("Starting Room - HIDDEN")) | ||
| 112 | self.assertTrue(self.can_reach_location("Hidden Room - OPEN")) | ||
| 113 | self.assertTrue(self.can_reach_location("The Seeker - Achievement")) | ||
| 114 | |||
| 115 | |||
| 116 | class TestGroupedPanels(LingoTestBase): | ||
| 117 | options = { | ||
| 118 | "shuffle_doors": "panels", | ||
| 119 | "group_doors": "true", | ||
| 120 | "shuffle_colors": "false", | ||
| 121 | } | ||
| 122 | |||
| 123 | def test_requirement(self): | ||
| 124 | self.assertFalse(self.can_reach_location("Hub Room - SLAUGHTER")) | ||
| 125 | self.assertFalse(self.can_reach_location("Dread Hallway - DREAD")) | ||
| 126 | self.assertFalse(self.can_reach_location("The Tenacious - Achievement")) | ||
| 127 | |||
| 128 | self.collect_by_name("Tenacious Entrance Panels") | ||
| 129 | self.assertTrue(self.can_reach_location("Hub Room - SLAUGHTER")) | ||
| 130 | self.assertFalse(self.can_reach_location("Dread Hallway - DREAD")) | ||
| 131 | self.assertFalse(self.can_reach_location("The Tenacious - Achievement")) | ||
| 132 | |||
| 133 | self.collect_by_name("Outside The Agreeable - BLACK (Panel)") | ||
| 134 | self.assertTrue(self.can_reach_location("Hub Room - SLAUGHTER")) | ||
| 135 | self.assertTrue(self.can_reach_location("Dread Hallway - DREAD")) | ||
| 136 | self.assertFalse(self.can_reach_location("The Tenacious - Achievement")) | ||
| 137 | |||
| 138 | self.collect_by_name("The Tenacious - Black Palindromes (Panels)") | ||
| 139 | self.assertTrue(self.can_reach_location("Hub Room - SLAUGHTER")) | ||
| 140 | self.assertTrue(self.can_reach_location("Dread Hallway - DREAD")) | ||
| 141 | self.assertTrue(self.can_reach_location("The Tenacious - Achievement")) | ||
| 142 | |||
| diff --git a/test/TestOptions.py b/test/TestOptions.py index fce0743..bd8ed81 100644 --- a/test/TestOptions.py +++ b/test/TestOptions.py | |||
| @@ -3,7 +3,7 @@ from . import LingoTestBase | |||
| 3 | 3 | ||
| 4 | class TestMultiShuffleOptions(LingoTestBase): | 4 | class TestMultiShuffleOptions(LingoTestBase): | 
| 5 | options = { | 5 | options = { | 
| 6 | "shuffle_doors": "complex", | 6 | "shuffle_doors": "doors", | 
| 7 | "progressive_orange_tower": "true", | 7 | "progressive_orange_tower": "true", | 
| 8 | "shuffle_colors": "true", | 8 | "shuffle_colors": "true", | 
| 9 | "shuffle_paintings": "true", | 9 | "shuffle_paintings": "true", | 
| @@ -13,7 +13,7 @@ class TestMultiShuffleOptions(LingoTestBase): | |||
| 13 | 13 | ||
| 14 | class TestPanelsanity(LingoTestBase): | 14 | class TestPanelsanity(LingoTestBase): | 
| 15 | options = { | 15 | options = { | 
| 16 | "shuffle_doors": "complex", | 16 | "shuffle_doors": "doors", | 
| 17 | "progressive_orange_tower": "true", | 17 | "progressive_orange_tower": "true", | 
| 18 | "location_checks": "insanity", | 18 | "location_checks": "insanity", | 
| 19 | "shuffle_colors": "true" | 19 | "shuffle_colors": "true" | 
| @@ -22,7 +22,18 @@ class TestPanelsanity(LingoTestBase): | |||
| 22 | 22 | ||
| 23 | class TestAllPanelHunt(LingoTestBase): | 23 | class TestAllPanelHunt(LingoTestBase): | 
| 24 | options = { | 24 | options = { | 
| 25 | "shuffle_doors": "complex", | 25 | "shuffle_doors": "doors", | 
| 26 | "progressive_orange_tower": "true", | ||
| 27 | "shuffle_colors": "true", | ||
| 28 | "victory_condition": "level_2", | ||
| 29 | "level_2_requirement": "800", | ||
| 30 | "early_color_hallways": "true" | ||
| 31 | } | ||
| 32 | |||
| 33 | |||
| 34 | class TestAllPanelHuntPanelsMode(LingoTestBase): | ||
| 35 | options = { | ||
| 36 | "shuffle_doors": "panels", | ||
| 26 | "progressive_orange_tower": "true", | 37 | "progressive_orange_tower": "true", | 
| 27 | "shuffle_colors": "true", | 38 | "shuffle_colors": "true", | 
| 28 | "victory_condition": "level_2", | 39 | "victory_condition": "level_2", | 
| diff --git a/test/TestOrangeTower.py b/test/TestOrangeTower.py index 7b0c3bb..444264a 100644 --- a/test/TestOrangeTower.py +++ b/test/TestOrangeTower.py | |||
| @@ -3,7 +3,7 @@ from . import LingoTestBase | |||
| 3 | 3 | ||
| 4 | class TestProgressiveOrangeTower(LingoTestBase): | 4 | class TestProgressiveOrangeTower(LingoTestBase): | 
| 5 | options = { | 5 | options = { | 
| 6 | "shuffle_doors": "complex", | 6 | "shuffle_doors": "doors", | 
| 7 | "progressive_orange_tower": "true" | 7 | "progressive_orange_tower": "true" | 
| 8 | } | 8 | } | 
| 9 | 9 | ||
| diff --git a/test/TestPanelsanity.py b/test/TestPanelsanity.py index 34c1b38..f8330ae 100644 --- a/test/TestPanelsanity.py +++ b/test/TestPanelsanity.py | |||
| @@ -3,7 +3,7 @@ from . import LingoTestBase | |||
| 3 | 3 | ||
| 4 | class TestPanelHunt(LingoTestBase): | 4 | class TestPanelHunt(LingoTestBase): | 
| 5 | options = { | 5 | options = { | 
| 6 | "shuffle_doors": "complex", | 6 | "shuffle_doors": "doors", | 
| 7 | "location_checks": "insanity", | 7 | "location_checks": "insanity", | 
| 8 | "victory_condition": "level_2", | 8 | "victory_condition": "level_2", | 
| 9 | "level_2_requirement": "15" | 9 | "level_2_requirement": "15" | 
| diff --git a/test/TestPilgrimage.py b/test/TestPilgrimage.py index 4c5e259..328156d 100644 --- a/test/TestPilgrimage.py +++ b/test/TestPilgrimage.py | |||
| @@ -18,7 +18,7 @@ class TestPilgrimageWithRoofAndPaintings(LingoTestBase): | |||
| 18 | options = { | 18 | options = { | 
| 19 | "enable_pilgrimage": "true", | 19 | "enable_pilgrimage": "true", | 
| 20 | "shuffle_colors": "false", | 20 | "shuffle_colors": "false", | 
| 21 | "shuffle_doors": "complex", | 21 | "shuffle_doors": "doors", | 
| 22 | "pilgrimage_allows_roof_access": "true", | 22 | "pilgrimage_allows_roof_access": "true", | 
| 23 | "pilgrimage_allows_paintings": "true", | 23 | "pilgrimage_allows_paintings": "true", | 
| 24 | "early_color_hallways": "false" | 24 | "early_color_hallways": "false" | 
| @@ -39,7 +39,7 @@ class TestPilgrimageNoRoofYesPaintings(LingoTestBase): | |||
| 39 | options = { | 39 | options = { | 
| 40 | "enable_pilgrimage": "true", | 40 | "enable_pilgrimage": "true", | 
| 41 | "shuffle_colors": "false", | 41 | "shuffle_colors": "false", | 
| 42 | "shuffle_doors": "complex", | 42 | "shuffle_doors": "doors", | 
| 43 | "pilgrimage_allows_roof_access": "false", | 43 | "pilgrimage_allows_roof_access": "false", | 
| 44 | "pilgrimage_allows_paintings": "true", | 44 | "pilgrimage_allows_paintings": "true", | 
| 45 | "early_color_hallways": "false" | 45 | "early_color_hallways": "false" | 
| @@ -62,7 +62,7 @@ class TestPilgrimageNoRoofNoPaintings(LingoTestBase): | |||
| 62 | options = { | 62 | options = { | 
| 63 | "enable_pilgrimage": "true", | 63 | "enable_pilgrimage": "true", | 
| 64 | "shuffle_colors": "false", | 64 | "shuffle_colors": "false", | 
| 65 | "shuffle_doors": "complex", | 65 | "shuffle_doors": "doors", | 
| 66 | "pilgrimage_allows_roof_access": "false", | 66 | "pilgrimage_allows_roof_access": "false", | 
| 67 | "pilgrimage_allows_paintings": "false", | 67 | "pilgrimage_allows_paintings": "false", | 
| 68 | "early_color_hallways": "false" | 68 | "early_color_hallways": "false" | 
| @@ -117,7 +117,7 @@ class TestPilgrimageYesRoofNoPaintings(LingoTestBase): | |||
| 117 | options = { | 117 | options = { | 
| 118 | "enable_pilgrimage": "true", | 118 | "enable_pilgrimage": "true", | 
| 119 | "shuffle_colors": "false", | 119 | "shuffle_colors": "false", | 
| 120 | "shuffle_doors": "complex", | 120 | "shuffle_doors": "doors", | 
| 121 | "pilgrimage_allows_roof_access": "true", | 121 | "pilgrimage_allows_roof_access": "true", | 
| 122 | "pilgrimage_allows_paintings": "false", | 122 | "pilgrimage_allows_paintings": "false", | 
| 123 | "early_color_hallways": "false" | 123 | "early_color_hallways": "false" | 
| diff --git a/test/TestProgressive.py b/test/TestProgressive.py index e79fd6b..2c837f5 100644 --- a/test/TestProgressive.py +++ b/test/TestProgressive.py | |||
| @@ -3,7 +3,7 @@ from . import LingoTestBase | |||
| 3 | 3 | ||
| 4 | class TestComplexProgressiveHallwayRoom(LingoTestBase): | 4 | class TestComplexProgressiveHallwayRoom(LingoTestBase): | 
| 5 | options = { | 5 | options = { | 
| 6 | "shuffle_doors": "complex" | 6 | "shuffle_doors": "doors" | 
| 7 | } | 7 | } | 
| 8 | 8 | ||
| 9 | def test_item(self): | 9 | def test_item(self): | 
| @@ -54,7 +54,8 @@ class TestComplexProgressiveHallwayRoom(LingoTestBase): | |||
| 54 | 54 | ||
| 55 | class TestSimpleHallwayRoom(LingoTestBase): | 55 | class TestSimpleHallwayRoom(LingoTestBase): | 
| 56 | options = { | 56 | options = { | 
| 57 | "shuffle_doors": "simple" | 57 | "shuffle_doors": "doors", | 
| 58 | "group_doors": "true", | ||
| 58 | } | 59 | } | 
| 59 | 60 | ||
| 60 | def test_item(self): | 61 | def test_item(self): | 
| @@ -81,7 +82,7 @@ class TestSimpleHallwayRoom(LingoTestBase): | |||
| 81 | 82 | ||
| 82 | class TestProgressiveArtGallery(LingoTestBase): | 83 | class TestProgressiveArtGallery(LingoTestBase): | 
| 83 | options = { | 84 | options = { | 
| 84 | "shuffle_doors": "complex", | 85 | "shuffle_doors": "doors", | 
| 85 | "shuffle_colors": "false", | 86 | "shuffle_colors": "false", | 
| 86 | } | 87 | } | 
| 87 | 88 | ||
| diff --git a/test/TestSunwarps.py b/test/TestSunwarps.py index e8e913c..66ba3af 100644 --- a/test/TestSunwarps.py +++ b/test/TestSunwarps.py | |||
| @@ -19,7 +19,8 @@ class TestVanillaDoorsNormalSunwarps(LingoTestBase): | |||
| 19 | 19 | ||
| 20 | class TestSimpleDoorsNormalSunwarps(LingoTestBase): | 20 | class TestSimpleDoorsNormalSunwarps(LingoTestBase): | 
| 21 | options = { | 21 | options = { | 
| 22 | "shuffle_doors": "simple", | 22 | "shuffle_doors": "doors", | 
| 23 | "group_doors": "true", | ||
| 23 | "sunwarp_access": "normal" | 24 | "sunwarp_access": "normal" | 
| 24 | } | 25 | } | 
| 25 | 26 | ||
| @@ -37,7 +38,8 @@ class TestSimpleDoorsNormalSunwarps(LingoTestBase): | |||
| 37 | 38 | ||
| 38 | class TestSimpleDoorsDisabledSunwarps(LingoTestBase): | 39 | class TestSimpleDoorsDisabledSunwarps(LingoTestBase): | 
| 39 | options = { | 40 | options = { | 
| 40 | "shuffle_doors": "simple", | 41 | "shuffle_doors": "doors", | 
| 42 | "group_doors": "true", | ||
| 41 | "sunwarp_access": "disabled" | 43 | "sunwarp_access": "disabled" | 
| 42 | } | 44 | } | 
| 43 | 45 | ||
| @@ -56,7 +58,8 @@ class TestSimpleDoorsDisabledSunwarps(LingoTestBase): | |||
| 56 | 58 | ||
| 57 | class TestSimpleDoorsUnlockSunwarps(LingoTestBase): | 59 | class TestSimpleDoorsUnlockSunwarps(LingoTestBase): | 
| 58 | options = { | 60 | options = { | 
| 59 | "shuffle_doors": "simple", | 61 | "shuffle_doors": "doors", | 
| 62 | "group_doors": "true", | ||
| 60 | "sunwarp_access": "unlock" | 63 | "sunwarp_access": "unlock" | 
| 61 | } | 64 | } | 
| 62 | 65 | ||
| @@ -78,7 +81,8 @@ class TestSimpleDoorsUnlockSunwarps(LingoTestBase): | |||
| 78 | 81 | ||
| 79 | class TestComplexDoorsNormalSunwarps(LingoTestBase): | 82 | class TestComplexDoorsNormalSunwarps(LingoTestBase): | 
| 80 | options = { | 83 | options = { | 
| 81 | "shuffle_doors": "complex", | 84 | "shuffle_doors": "doors", | 
| 85 | "group_doors": "false", | ||
| 82 | "sunwarp_access": "normal" | 86 | "sunwarp_access": "normal" | 
| 83 | } | 87 | } | 
| 84 | 88 | ||
| @@ -96,7 +100,8 @@ class TestComplexDoorsNormalSunwarps(LingoTestBase): | |||
| 96 | 100 | ||
| 97 | class TestComplexDoorsDisabledSunwarps(LingoTestBase): | 101 | class TestComplexDoorsDisabledSunwarps(LingoTestBase): | 
| 98 | options = { | 102 | options = { | 
| 99 | "shuffle_doors": "complex", | 103 | "shuffle_doors": "doors", | 
| 104 | "group_doors": "false", | ||
| 100 | "sunwarp_access": "disabled" | 105 | "sunwarp_access": "disabled" | 
| 101 | } | 106 | } | 
| 102 | 107 | ||
| @@ -115,7 +120,8 @@ class TestComplexDoorsDisabledSunwarps(LingoTestBase): | |||
| 115 | 120 | ||
| 116 | class TestComplexDoorsIndividualSunwarps(LingoTestBase): | 121 | class TestComplexDoorsIndividualSunwarps(LingoTestBase): | 
| 117 | options = { | 122 | options = { | 
| 118 | "shuffle_doors": "complex", | 123 | "shuffle_doors": "doors", | 
| 124 | "group_doors": "false", | ||
| 119 | "sunwarp_access": "individual" | 125 | "sunwarp_access": "individual" | 
| 120 | } | 126 | } | 
| 121 | 127 | ||
| @@ -142,7 +148,8 @@ class TestComplexDoorsIndividualSunwarps(LingoTestBase): | |||
| 142 | 148 | ||
| 143 | class TestComplexDoorsProgressiveSunwarps(LingoTestBase): | 149 | class TestComplexDoorsProgressiveSunwarps(LingoTestBase): | 
| 144 | options = { | 150 | options = { | 
| 145 | "shuffle_doors": "complex", | 151 | "shuffle_doors": "doors", | 
| 152 | "group_doors": "false", | ||
| 146 | "sunwarp_access": "progressive" | 153 | "sunwarp_access": "progressive" | 
| 147 | } | 154 | } | 
| 148 | 155 | ||
