mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-28 05:04:13 -05:00
simplify the battle tests
This commit is contained in:
@@ -39,13 +39,16 @@ class BattleTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
# reset to whatever the bootstrapper created
|
||||
self.vba.state = self.bootstrap_state
|
||||
self.battle = Battle(emulator=self.cry)
|
||||
|
||||
def test_battle_is_player_turn(self):
|
||||
self.cry.vba.state = self.bootstrap_state
|
||||
def test_is_in_battle(self):
|
||||
self.assertTrue(self.battle.is_in_battle())
|
||||
|
||||
battle = Battle(emulator=self.cry)
|
||||
def test_is_player_turn(self):
|
||||
self.battle.skip_start_text()
|
||||
|
||||
self.assertTrue(battle.is_player_turn())
|
||||
# the initial state should be the player's turn
|
||||
self.assertTrue(self.battle.is_player_turn())
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user