diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/TestMastery.py | 6 | ||||
| -rw-r--r-- | test/TestPostgame.py | 62 |
2 files changed, 66 insertions, 2 deletions
| diff --git a/test/TestMastery.py b/test/TestMastery.py index 3ebe40a..c9c79a9 100644 --- a/test/TestMastery.py +++ b/test/TestMastery.py | |||
| @@ -5,7 +5,8 @@ class TestMasteryWhenVictoryIsTheEnd(LingoTestBase): | |||
| 5 | options = { | 5 | options = { |
| 6 | "mastery_achievements": "22", | 6 | "mastery_achievements": "22", |
| 7 | "victory_condition": "the_end", | 7 | "victory_condition": "the_end", |
| 8 | "shuffle_colors": "true" | 8 | "shuffle_colors": "true", |
| 9 | "shuffle_postgame": "true", | ||
| 9 | } | 10 | } |
| 10 | 11 | ||
| 11 | def test_requirement(self): | 12 | def test_requirement(self): |
| @@ -43,7 +44,8 @@ class TestMasteryBlocksDependents(LingoTestBase): | |||
| 43 | options = { | 44 | options = { |
| 44 | "mastery_achievements": "24", | 45 | "mastery_achievements": "24", |
| 45 | "shuffle_colors": "true", | 46 | "shuffle_colors": "true", |
| 46 | "location_checks": "insanity" | 47 | "location_checks": "insanity", |
| 48 | "victory_condition": "level_2", | ||
| 47 | } | 49 | } |
| 48 | 50 | ||
| 49 | def test_requirement(self): | 51 | def test_requirement(self): |
| diff --git a/test/TestPostgame.py b/test/TestPostgame.py new file mode 100644 index 0000000..d2e2232 --- /dev/null +++ b/test/TestPostgame.py | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | from . import LingoTestBase | ||
| 2 | |||
| 3 | |||
| 4 | class TestPostgameVanillaTheEnd(LingoTestBase): | ||
| 5 | options = { | ||
| 6 | "shuffle_doors": "none", | ||
| 7 | "victory_condition": "the_end", | ||
| 8 | "shuffle_postgame": "false", | ||
| 9 | } | ||
| 10 | |||
| 11 | def test_requirement(self): | ||
| 12 | location_names = [location.name for location in self.multiworld.get_locations(self.player)] | ||
| 13 | |||
| 14 | self.assertTrue("The End (Solved)" in location_names) | ||
| 15 | self.assertTrue("Champion's Rest - YOU" in location_names) | ||
| 16 | self.assertFalse("Orange Tower Seventh Floor - THE MASTER" in location_names) | ||
| 17 | self.assertFalse("The Red - Achievement" in location_names) | ||
| 18 | |||
| 19 | |||
| 20 | class TestPostgameComplexDoorsTheEnd(LingoTestBase): | ||
| 21 | options = { | ||
| 22 | "shuffle_doors": "complex", | ||
| 23 | "victory_condition": "the_end", | ||
| 24 | "shuffle_postgame": "false", | ||
| 25 | } | ||
| 26 | |||
| 27 | def test_requirement(self): | ||
| 28 | location_names = [location.name for location in self.multiworld.get_locations(self.player)] | ||
| 29 | |||
| 30 | self.assertTrue("The End (Solved)" in location_names) | ||
| 31 | self.assertFalse("Orange Tower Seventh Floor - THE MASTER" in location_names) | ||
| 32 | self.assertTrue("The Red - Achievement" in location_names) | ||
| 33 | |||
| 34 | |||
| 35 | class TestPostgameLateColorHunt(LingoTestBase): | ||
| 36 | options = { | ||
| 37 | "shuffle_doors": "none", | ||
| 38 | "victory_condition": "the_end", | ||
| 39 | "sunwarp_access": "disabled", | ||
| 40 | "shuffle_postgame": "false", | ||
| 41 | } | ||
| 42 | |||
| 43 | def test_requirement(self): | ||
| 44 | location_names = [location.name for location in self.multiworld.get_locations(self.player)] | ||
| 45 | |||
| 46 | self.assertFalse("Champion's Rest - YOU" in location_names) | ||
| 47 | |||
| 48 | |||
| 49 | class TestPostgameVanillaTheMaster(LingoTestBase): | ||
| 50 | options = { | ||
| 51 | "shuffle_doors": "none", | ||
| 52 | "victory_condition": "the_master", | ||
| 53 | "shuffle_postgame": "false", | ||
| 54 | } | ||
| 55 | |||
| 56 | def test_requirement(self): | ||
| 57 | location_names = [location.name for location in self.multiworld.get_locations(self.player)] | ||
| 58 | |||
| 59 | self.assertTrue("Orange Tower Seventh Floor - THE END" in location_names) | ||
| 60 | self.assertTrue("Orange Tower Seventh Floor - Mastery Achievements" in location_names) | ||
| 61 | self.assertTrue("The Red - Achievement" in location_names) | ||
| 62 | self.assertFalse("Mastery Panels" in location_names) | ||
