From 3f8a7975ee15bf8cb000537bb2e816977b33ab37 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Mon, 30 Mar 2015 15:31:41 +0200 Subject: [PATCH] Test fix --- .../openlp_plugins/presentations/test_powerpointcontroller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/functional/openlp_plugins/presentations/test_powerpointcontroller.py b/tests/functional/openlp_plugins/presentations/test_powerpointcontroller.py index 2af76ee4f..dd1c1137a 100644 --- a/tests/functional/openlp_plugins/presentations/test_powerpointcontroller.py +++ b/tests/functional/openlp_plugins/presentations/test_powerpointcontroller.py @@ -126,6 +126,7 @@ class TestPowerpointDocument(TestCase, TestMixin): instance = PowerpointDocument(self.mock_controller, self.mock_presentation) instance.presentation = MagicMock() instance.presentation.SlideShowWindow.View.GotoSlide = MagicMock(side_effect=pywintypes.com_error('1')) + instance.index_map[42] = 42 # WHEN: Calling goto_slide which will throw an exception instance.goto_slide(42)