test fixes

This commit is contained in:
Phill Ridout 2015-01-22 17:52:48 +00:00
parent 75dff3d2be
commit 125f019486
1 changed files with 3 additions and 0 deletions

View File

@ -31,8 +31,10 @@ from tests.functional import patch, MagicMock
from tests.utils.constants import TEST_RESOURCES_PATH
from tests.helpers.testmixin import TestMixin
from openlp.core.common import Settings
from openlp.plugins.presentations.lib.impresscontroller import \
ImpressController, ImpressDocument, TextType
from openlp.plugins.presentations.presentationplugin import __default_settings__
class TestImpressController(TestCase, TestMixin):
@ -79,6 +81,7 @@ class TestImpressDocument(TestCase):
def setUp(self):
mocked_plugin = MagicMock()
mocked_plugin.settings_section = 'presentations'
Settings().extend_default_settings(__default_settings__)
self.file_name = os.path.join(TEST_RESOURCES_PATH, 'presentations', 'test.pptx')
self.ppc = ImpressController(mocked_plugin)
self.doc = ImpressDocument(self.ppc, self.file_name)