Fix slidecontroller test

This commit is contained in:
Tomas Groth 2014-11-25 22:31:18 +00:00
parent 31018fb5ae
commit 92a6831b15

View File

@ -225,6 +225,10 @@ class TestSlideController(TestCase):
Registry().register('media_controller', mocked_media_controller) Registry().register('media_controller', mocked_media_controller)
slide_controller = SlideController(None) slide_controller = SlideController(None)
slide_controller.display = mocked_display slide_controller.display = mocked_display
play_slides = MagicMock()
play_slides.isChecked.return_value = False
slide_controller.play_slides_loop = play_slides
slide_controller.play_slides_once = play_slides
# WHEN: live_escape() is called # WHEN: live_escape() is called
slide_controller.live_escape() slide_controller.live_escape()