This commit is contained in:
Philip Ridout 2019-02-07 19:38:11 +00:00
parent 2e93377cd3
commit c7e4be5512

View File

@ -29,6 +29,7 @@ from PyQt5 import QtGui, QtWidgets
from openlp.core.common.registry import Registry from openlp.core.common.registry import Registry
from openlp.core.lib.serviceitem import ServiceItem from openlp.core.lib.serviceitem import ServiceItem
from openlp.core.state import State
from openlp.core.widgets.views import ListPreviewWidget from openlp.core.widgets.views import ListPreviewWidget
from tests.helpers.testmixin import TestMixin from tests.helpers.testmixin import TestMixin
from tests.utils.osdinteraction import read_service_from_file from tests.utils.osdinteraction import read_service_from_file
@ -42,6 +43,7 @@ class TestListPreviewWidget(TestCase, TestMixin):
""" """
Registry.create() Registry.create()
self.setup_application() self.setup_application()
State().load_settings()
self.main_window = QtWidgets.QMainWindow() self.main_window = QtWidgets.QMainWindow()
self.image = QtGui.QImage(1, 1, QtGui.QImage.Format_RGB32) self.image = QtGui.QImage(1, 1, QtGui.QImage.Format_RGB32)
self.image_manager = MagicMock() self.image_manager = MagicMock()