summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-22 00:10:07 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-22 00:10:07 -0500
commit713c4ceb7736c620cb1626745d0c5bbfec3e22b1 (patch)
treebe402b3466237b0d2736aa60c00d24d101b0643c /tests
parentd0c53213c416a1c77891fb10f11e6316817101e7 (diff)
fix the autoplayer bootstrapper for test_vba.py
Diffstat (limited to 'tests')
-rw-r--r--tests/test_vba.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/test_vba.py b/tests/test_vba.py
index 12dd51b..d11108d 100644
--- a/tests/test_vba.py
+++ b/tests/test_vba.py
@@ -7,11 +7,11 @@ import unittest
import pokemontools.vba.vba as vba
try:
- import pokemontools.vba.vba_autoplayer
+ import pokemontools.vba.vba_autoplayer as autoplayer
except ImportError:
- import pokemontools.vba.autoplayer as vba_autoplayer
+ import pokemontools.vba.autoplayer as autoplayer
-vba_autoplayer.vba = vba
+autoplayer.vba = vba
def setup_wram():
"""
@@ -31,18 +31,17 @@ def bootstrap():
is constructed by this function.
"""
- # reset the rom
- vba.shutdown()
- vba.load_rom()
+ cry = vba.crystal()
+ runner = autoplayer.SpeedRunner(cry=cry)
# skip=False means run the skip_intro function instead of just skipping to
# a saved state.
- vba_autoplayer.skip_intro()
+ runner.skip_intro()
- state = vba.get_state()
+ state = cry.get_state()
# clean everything up again
- vba.shutdown()
+ cry.vba.shutdown()
return state