diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-08 18:35:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 17:35:12 -0600 |
commit | bbbbc71bee25cfd22c5304f98f5a7881383585a3 (patch) | |
tree | d27581db7b8db03da4b731fe8c2d5072d3162cf8 /test/TestMastery.py | |
download | lingo-apworld-bbbbc71bee25cfd22c5304f98f5a7881383585a3.tar.gz lingo-apworld-bbbbc71bee25cfd22c5304f98f5a7881383585a3.tar.bz2 lingo-apworld-bbbbc71bee25cfd22c5304f98f5a7881383585a3.zip |
Lingo: New game (#1806)
Co-authored-by: Aaron Wagener <mmmcheese158@gmail.com> Co-authored-by: Fabian Dill <Berserker66@users.noreply.github.com> Co-authored-by: Phar <zach@alliware.com>
Diffstat (limited to 'test/TestMastery.py')
-rw-r--r-- | test/TestMastery.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/TestMastery.py b/test/TestMastery.py new file mode 100644 index 0000000..3fb3c95 --- /dev/null +++ b/test/TestMastery.py | |||
@@ -0,0 +1,39 @@ | |||
1 | from . import LingoTestBase | ||
2 | |||
3 | |||
4 | class TestMasteryWhenVictoryIsTheEnd(LingoTestBase): | ||
5 | options = { | ||
6 | "mastery_achievements": "22", | ||
7 | "victory_condition": "the_end", | ||
8 | "shuffle_colors": "true" | ||
9 | } | ||
10 | |||
11 | def test_requirement(self): | ||
12 | self.assertFalse(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) | ||
13 | |||
14 | self.collect_by_name(["Red", "Blue", "Black", "Purple", "Orange"]) | ||
15 | self.assertTrue(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) | ||
16 | self.assertTrue(self.can_reach_location("The End (Solved)")) | ||
17 | self.assertFalse(self.can_reach_location("Orange Tower Seventh Floor - THE MASTER")) | ||
18 | |||
19 | self.collect_by_name(["Green", "Brown", "Yellow"]) | ||
20 | self.assertTrue(self.can_reach_location("Orange Tower Seventh Floor - THE MASTER")) | ||
21 | |||
22 | |||
23 | class TestMasteryWhenVictoryIsTheMaster(LingoTestBase): | ||
24 | options = { | ||
25 | "mastery_achievements": "24", | ||
26 | "victory_condition": "the_master", | ||
27 | "shuffle_colors": "true" | ||
28 | } | ||
29 | |||
30 | def test_requirement(self): | ||
31 | self.assertFalse(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) | ||
32 | |||
33 | self.collect_by_name(["Red", "Blue", "Black", "Purple", "Orange"]) | ||
34 | self.assertTrue(self.multiworld.state.can_reach("Orange Tower Seventh Floor", "Region", self.player)) | ||
35 | self.assertTrue(self.can_reach_location("Orange Tower Seventh Floor - THE END")) | ||
36 | self.assertFalse(self.can_reach_location("Orange Tower Seventh Floor - Mastery Achievements")) | ||
37 | |||
38 | self.collect_by_name(["Green", "Gray", "Brown", "Yellow"]) | ||
39 | self.assertTrue(self.can_reach_location("Orange Tower Seventh Floor - Mastery Achievements")) \ No newline at end of file | ||