forked from openlp/openlp
test fixes
This commit is contained in:
parent
75dff3d2be
commit
125f019486
@ -31,8 +31,10 @@ from tests.functional import patch, MagicMock
|
|||||||
from tests.utils.constants import TEST_RESOURCES_PATH
|
from tests.utils.constants import TEST_RESOURCES_PATH
|
||||||
from tests.helpers.testmixin import TestMixin
|
from tests.helpers.testmixin import TestMixin
|
||||||
|
|
||||||
|
from openlp.core.common import Settings
|
||||||
from openlp.plugins.presentations.lib.impresscontroller import \
|
from openlp.plugins.presentations.lib.impresscontroller import \
|
||||||
ImpressController, ImpressDocument, TextType
|
ImpressController, ImpressDocument, TextType
|
||||||
|
from openlp.plugins.presentations.presentationplugin import __default_settings__
|
||||||
|
|
||||||
|
|
||||||
class TestImpressController(TestCase, TestMixin):
|
class TestImpressController(TestCase, TestMixin):
|
||||||
@ -79,6 +81,7 @@ class TestImpressDocument(TestCase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
mocked_plugin = MagicMock()
|
mocked_plugin = MagicMock()
|
||||||
mocked_plugin.settings_section = 'presentations'
|
mocked_plugin.settings_section = 'presentations'
|
||||||
|
Settings().extend_default_settings(__default_settings__)
|
||||||
self.file_name = os.path.join(TEST_RESOURCES_PATH, 'presentations', 'test.pptx')
|
self.file_name = os.path.join(TEST_RESOURCES_PATH, 'presentations', 'test.pptx')
|
||||||
self.ppc = ImpressController(mocked_plugin)
|
self.ppc = ImpressController(mocked_plugin)
|
||||||
self.doc = ImpressDocument(self.ppc, self.file_name)
|
self.doc = ImpressDocument(self.ppc, self.file_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user