From 6b4ed77fee628ba84abd63eac9313eb3e284633a Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Tue, 12 Feb 2019 20:55:58 +0000 Subject: [PATCH] fix up tests --- tests/interfaces/openlp_core/widgets/test_views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/interfaces/openlp_core/widgets/test_views.py b/tests/interfaces/openlp_core/widgets/test_views.py index a352f5093..4c987e98f 100644 --- a/tests/interfaces/openlp_core/widgets/test_views.py +++ b/tests/interfaces/openlp_core/widgets/test_views.py @@ -44,6 +44,9 @@ class TestListPreviewWidget(TestCase, TestMixin): Registry.create() self.setup_application() State().load_settings() + State().add_service("media", 0) + State().update_pre_conditions("media", True) + State().flush_preconditions() self.main_window = QtWidgets.QMainWindow() self.image = QtGui.QImage(1, 1, QtGui.QImage.Format_RGB32) self.image_manager = MagicMock()