forked from openlp/openlp
fix test
This commit is contained in:
parent
2e93377cd3
commit
c7e4be5512
@ -29,6 +29,7 @@ from PyQt5 import QtGui, QtWidgets
|
||||
|
||||
from openlp.core.common.registry import Registry
|
||||
from openlp.core.lib.serviceitem import ServiceItem
|
||||
from openlp.core.state import State
|
||||
from openlp.core.widgets.views import ListPreviewWidget
|
||||
from tests.helpers.testmixin import TestMixin
|
||||
from tests.utils.osdinteraction import read_service_from_file
|
||||
@ -42,6 +43,7 @@ class TestListPreviewWidget(TestCase, TestMixin):
|
||||
"""
|
||||
Registry.create()
|
||||
self.setup_application()
|
||||
State().load_settings()
|
||||
self.main_window = QtWidgets.QMainWindow()
|
||||
self.image = QtGui.QImage(1, 1, QtGui.QImage.Format_RGB32)
|
||||
self.image_manager = MagicMock()
|
||||
|
Loading…
Reference in New Issue
Block a user