summary refs log tree commit diff stats
path: root/test/TestOrangeTower.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/TestOrangeTower.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/TestOrangeTower.py')
-rw-r--r--test/TestOrangeTower.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/TestOrangeTower.py b/test/TestOrangeTower.py index 7b0c3bb..9170de1 100644 --- a/test/TestOrangeTower.py +++ b/test/TestOrangeTower.py
@@ -8,6 +8,8 @@ class TestProgressiveOrangeTower(LingoTestBase):
8 } 8 }
9 9
10 def test_from_welcome_back(self) -> None: 10 def test_from_welcome_back(self) -> None:
11 self.remove_forced_good_item()
12
11 self.assertFalse(self.multiworld.state.can_reach("Orange Tower First Floor", "Region", self.player)) 13 self.assertFalse(self.multiworld.state.can_reach("Orange Tower First Floor", "Region", self.player))
12 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Second Floor", "Region", self.player)) 14 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Second Floor", "Region", self.player))
13 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Third Floor", "Region", self.player)) 15 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Third Floor", "Region", self.player))
@@ -83,6 +85,8 @@ class TestProgressiveOrangeTower(LingoTestBase):
83 self.assertTrue(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) 85 self.assertTrue(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player))
84 86
85 def test_from_hub_room(self) -> None: 87 def test_from_hub_room(self) -> None:
88 self.remove_forced_good_item()
89
86 self.assertFalse(self.multiworld.state.can_reach("Orange Tower First Floor", "Region", self.player)) 90 self.assertFalse(self.multiworld.state.can_reach("Orange Tower First Floor", "Region", self.player))
87 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Second Floor", "Region", self.player)) 91 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Second Floor", "Region", self.player))
88 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Third Floor", "Region", self.player)) 92 self.assertFalse(self.multiworld.state.can_reach("Orange Tower Third Floor", "Region", self.player))