mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
The Messenger: Make modules and tests PEP8 (#2276)
* The Messenger: PEP8 module and test names * fix dumb * whitespace
This commit is contained in:
35
worlds/messenger/test/test_notes.py
Normal file
35
worlds/messenger/test/test_notes.py
Normal file
@@ -0,0 +1,35 @@
|
||||
from . import MessengerTestBase
|
||||
from ..constants import NOTES
|
||||
|
||||
|
||||
class TwoNoteGoalTest(MessengerTestBase):
|
||||
options = {
|
||||
"notes_needed": 2,
|
||||
}
|
||||
|
||||
def test_precollected_notes(self) -> None:
|
||||
self.assertEqual(self.multiworld.state.count_group("Notes", self.player), 4)
|
||||
|
||||
|
||||
class FourNoteGoalTest(MessengerTestBase):
|
||||
options = {
|
||||
"notes_needed": 4,
|
||||
}
|
||||
|
||||
def test_precollected_notes(self) -> None:
|
||||
self.assertEqual(self.multiworld.state.count_group("Notes", self.player), 2)
|
||||
|
||||
|
||||
class DefaultGoalTest(MessengerTestBase):
|
||||
def test_precollected_notes(self) -> None:
|
||||
self.assertEqual(self.multiworld.state.count_group("Notes", self.player), 0)
|
||||
|
||||
def test_goal(self) -> None:
|
||||
self.assertBeatable(False)
|
||||
self.collect_by_name(NOTES)
|
||||
rope_dart = self.get_item_by_name("Rope Dart")
|
||||
self.collect(rope_dart)
|
||||
self.assertBeatable(True)
|
||||
self.remove(rope_dart)
|
||||
self.collect_by_name("Wingsuit")
|
||||
self.assertBeatable(True)
|
||||
Reference in New Issue
Block a user