# HG changeset patch # User Stefano Rivera # Date 1358283308 -7200 # Node ID 7d777c9a1af14a41dcf81f210aeec1f4a7c9adee # Parent db0762f1de5a578f8fe89c47205fcd225f937fcf Remove the last suspended-sentence-specific bits from GameLogicTestCase diff -r db0762f1de5a -r 7d777c9a1af1 gamelib/tests/game_logic_utils.py --- a/gamelib/tests/game_logic_utils.py Tue Jan 15 22:52:34 2013 +0200 +++ b/gamelib/tests/game_logic_utils.py Tue Jan 15 22:55:08 2013 +0200 @@ -2,7 +2,6 @@ import pygame.display -import gamelib.main import pyntnclick.state # Disable alpha conversion which requires a screen @@ -12,12 +11,13 @@ class GameLogicTestCase(unittest.TestCase): CURRENT_SCENE = None + GAME_DESCRIPTION_CLASS = None def setUp(self): # Events require us to initialize the display pygame.display.init() - self.game_description = gamelib.main.SuspendedSentence() + self.game_description = self.GAME_DESCRIPTION_CLASS() self.state = self.game_description.initial_state() self.state.current_scene = self.state.scenes[self.CURRENT_SCENE] diff -r db0762f1de5a -r 7d777c9a1af1 gamelib/tests/test_scene_interactions_cryo.py --- a/gamelib/tests/test_scene_interactions_cryo.py Tue Jan 15 22:52:34 2013 +0200 +++ b/gamelib/tests/test_scene_interactions_cryo.py Tue Jan 15 22:55:08 2013 +0200 @@ -1,8 +1,10 @@ +import gamelib.main import game_logic_utils class TestGameLogic(game_logic_utils.GameLogicTestCase): + GAME_DESCRIPTION_CLASS = gamelib.main.SuspendedSentence CURRENT_SCENE = 'cryo' def test_cryo_door_closed_hand(self): diff -r db0762f1de5a -r 7d777c9a1af1 gamelib/tests/test_walkthrough.py --- a/gamelib/tests/test_walkthrough.py Tue Jan 15 22:52:34 2013 +0200 +++ b/gamelib/tests/test_walkthrough.py Tue Jan 15 22:55:08 2013 +0200 @@ -1,8 +1,10 @@ +import gamelib.main import game_logic_utils class TestWalkthrough(game_logic_utils.GameLogicTestCase): + GAME_DESCRIPTION_CLASS = gamelib.main.SuspendedSentence CURRENT_SCENE = 'cryo' def move_to(self, target):