Skip to content

Commit

Permalink
Ruff ruff :3 I am a good puppy <3
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Sep 19, 2024
1 parent 403788a commit 83860e0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions worlds/witness/test/test_symbol_shuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_progressive_symbols(self) -> None:

self.assert_quantities_in_itempool(expected_quantities)

with self.subTest(f"Verify that Dots panels need 1 copy of Progressive Dots and Full Dots panel need 2 copies"):
with self.subTest("Verify that Dots panels need 1 copy of Progressive Dots and Full Dots panel need 2 copies"):
self.collect_all_but("Progressive Dots")
progressive_dots = self.get_items_by_name("Progressive Dots")
self.assertEqual(len(progressive_dots), 2)
Expand Down Expand Up @@ -108,16 +108,20 @@ def test_independent_second_stage_symbols(self):

self.assert_quantities_in_itempool(expected_quantities)

with self.subTest(f"Verify that Full Dots panels only need Full Dots"):
with self.subTest("Verify that Full Dots panels only need Full Dots"):
self.collect_by_name("Black/White Squares")
self.collect_by_name("Triangles")
self.collect_by_name("Outside Tutorial Outpost Exit (Door)")

self.assertFalse(self.multiworld.state.can_reach("Outside Tutorial Outpost Exit Panel", "Location", self.player))
self.assertFalse(
self.multiworld.state.can_reach("Outside Tutorial Outpost Exit Panel", "Location", self.player)
)
self.collect_by_name("Full Dots")
self.assertTrue(self.multiworld.state.can_reach("Outside Tutorial Outpost Exit Panel", "Location", self.player))
self.assertTrue(
self.multiworld.state.can_reach("Outside Tutorial Outpost Exit Panel", "Location", self.player)
)

with self.subTest(f"Verify that Stars + Same Colored Symbol panels only need Stars + Same Colored Symbol"):
with self.subTest("Verify that Stars + Same Colored Symbol panels only need Stars + Same Colored Symbol"):
self.collect_by_name("Eraser")
self.collect_by_name("Quarry Entry 1 (Door)")
self.collect_by_name("Quarry Entry 2 (Door)")
Expand All @@ -130,7 +134,7 @@ def test_independent_second_stage_symbols(self):
self.multiworld.state.can_reach("Quarry Stoneworks Entry Left Panel", "Location", self.player)
)

with self.subTest(f"Verify that non-symmetry Colored Dots panels only need Colored Dots"):
with self.subTest("Verify that non-symmetry Colored Dots panels only need Colored Dots"):
self.collect_by_name("Symmetry Island Lower (Door)")
self.collect_by_name("Symmetry Island Upper (Door)")

Expand Down Expand Up @@ -190,7 +194,9 @@ def test_independent_second_stage_symbols(self):
self.assertFalse(
self.multiworld.state.can_reach("Outside Tutorial Outpost Exit Panel", "Location", self.player))
self.collect_by_name("Dots")
self.assertTrue(self.multiworld.state.can_reach("Outside Tutorial Outpost Exit Panel", "Location", self.player))
self.assertTrue(
self.multiworld.state.can_reach("Outside Tutorial Outpost Exit Panel", "Location", self.player)
)

with self.subTest("Verify that Stars + Same Colored Symbol panels need Stars as well"):
self.collect_by_name("Eraser")
Expand Down

0 comments on commit 83860e0

Please sign in to comment.