fix up tests

This commit is contained in:
Tim Bentley 2019-02-12 20:55:58 +00:00
parent 4547b7b4eb
commit 6b4ed77fee

View File

@ -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()