forked from openlp/openlp
Fix tests and code
This commit is contained in:
parent
c24fb0cb59
commit
c1a1ac58ba
@ -194,7 +194,7 @@ class ListPreviewWidget(QtWidgets.QTableWidget, RegistryProperties):
|
||||
image = self.image_manager.get_image(frame['image'], ImageSource.CommandPlugins)
|
||||
pixmap = QtGui.QPixmap.fromImage(image)
|
||||
else:
|
||||
pixmap = frame['image'].pixmap(80, 80)
|
||||
pixmap = None # frame['image'].pixmap(80, 80)
|
||||
else:
|
||||
image = self.image_manager.get_image(frame['path'], ImageSource.ImagePlugin)
|
||||
pixmap = QtGui.QPixmap.fromImage(image)
|
||||
|
@ -80,7 +80,7 @@ class TestPluginManager(TestCase, TestMixin):
|
||||
# WHEN: We mock out sys.platform to make it return "darwin" and then find the plugins
|
||||
old_platform = sys.platform
|
||||
sys.platform = 'darwin'
|
||||
plugin_manager.find_plugins()
|
||||
plugin_manager.initialise_plugins()
|
||||
sys.platform = old_platform
|
||||
|
||||
# THEN: We should find the "Songs", "Bibles", etc in the plugins list
|
||||
|
@ -146,9 +146,6 @@ class TestProjectorDB(TestCase, TestMixin):
|
||||
Registry().set_flag('no_web_server', True)
|
||||
# Mock classes and methods used by mainwindow.
|
||||
with patch('openlp.core.ui.mainwindow.SettingsForm'), \
|
||||
patch('openlp.core.ui.mainwindow.ImageManager'), \
|
||||
patch('openlp.core.ui.mainwindow.LiveController'), \
|
||||
patch('openlp.core.ui.mainwindow.PreviewController'), \
|
||||
patch('openlp.core.ui.mainwindow.OpenLPDockWidget'), \
|
||||
patch('openlp.core.ui.mainwindow.QtWidgets.QToolBox'), \
|
||||
patch('openlp.core.ui.mainwindow.QtWidgets.QMainWindow.addDockWidget'), \
|
||||
|
Loading…
Reference in New Issue
Block a user