summary refs log tree commit diff stats
path: root/test/TestProgressive.py
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-12-18 10:46:24 -0500
committerGitHub <noreply@github.com>2023-12-18 09:46:24 -0600
commit1298dce3db9571a0907404cd3af09df948255d9e (patch)
treed264a998089d8f4a5b6833220d276bf9629d2a47 /test/TestProgressive.py
parent99128f67a3b4478a5561b1ba33a2f3588a61a1df (diff)
downloadlingo-apworld-1298dce3db9571a0907404cd3af09df948255d9e.tar.gz
lingo-apworld-1298dce3db9571a0907404cd3af09df948255d9e.tar.bz2
lingo-apworld-1298dce3db9571a0907404cd3af09df948255d9e.zip
Lingo: Tests no longer disable forced good item (#2602)
The static class with the "disable forced good item" field is gone. Now, certain tests that want to check for specific access progression can run a method that removes the forced good item and adds it back to the pool. Tests that don't care about this will collect the forced good item like normal. This should prevent the intermittent fill failures on complex doors unit tests, since the forced good item should provide enough locations to fill in.
Diffstat (limited to 'test/TestProgressive.py')
-rw-r--r--test/TestProgressive.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/TestProgressive.py b/test/TestProgressive.py index 917c6e7..8edc7ce 100644 --- a/test/TestProgressive.py +++ b/test/TestProgressive.py
@@ -7,6 +7,8 @@ class TestComplexProgressiveHallwayRoom(LingoTestBase):
7 } 7 }
8 8
9 def test_item(self): 9 def test_item(self):
10 self.remove_forced_good_item()
11
10 self.assertFalse(self.multiworld.state.can_reach("Outside The Agreeable", "Region", self.player)) 12 self.assertFalse(self.multiworld.state.can_reach("Outside The Agreeable", "Region", self.player))
11 self.assertFalse(self.multiworld.state.can_reach("Hallway Room (2)", "Region", self.player)) 13 self.assertFalse(self.multiworld.state.can_reach("Hallway Room (2)", "Region", self.player))
12 self.assertFalse(self.multiworld.state.can_reach("Hallway Room (3)", "Region", self.player)) 14 self.assertFalse(self.multiworld.state.can_reach("Hallway Room (3)", "Region", self.player))
@@ -58,6 +60,8 @@ class TestSimpleHallwayRoom(LingoTestBase):
58 } 60 }
59 61
60 def test_item(self): 62 def test_item(self):
63 self.remove_forced_good_item()
64
61 self.assertFalse(self.multiworld.state.can_reach("Outside The Agreeable", "Region", self.player)) 65 self.assertFalse(self.multiworld.state.can_reach("Outside The Agreeable", "Region", self.player))
62 self.assertFalse(self.multiworld.state.can_reach("Hallway Room (2)", "Region", self.player)) 66 self.assertFalse(self.multiworld.state.can_reach("Hallway Room (2)", "Region", self.player))
63 self.assertFalse(self.multiworld.state.can_reach("Hallway Room (3)", "Region", self.player)) 67 self.assertFalse(self.multiworld.state.can_reach("Hallway Room (3)", "Region", self.player))
@@ -86,6 +90,8 @@ class TestProgressiveArtGallery(LingoTestBase):
86 } 90 }
87 91
88 def test_item(self): 92 def test_item(self):
93 self.remove_forced_good_item()
94
89 self.assertFalse(self.multiworld.state.can_reach("Art Gallery", "Region", self.player)) 95 self.assertFalse(self.multiworld.state.can_reach("Art Gallery", "Region", self.player))
90 self.assertFalse(self.multiworld.state.can_reach("Art Gallery (Second Floor)", "Region", self.player)) 96 self.assertFalse(self.multiworld.state.can_reach("Art Gallery (Second Floor)", "Region", self.player))
91 self.assertFalse(self.multiworld.state.can_reach("Art Gallery (Third Floor)", "Region", self.player)) 97 self.assertFalse(self.multiworld.state.can_reach("Art Gallery (Third Floor)", "Region", self.player))