mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-25 17:13:57 +00:00
Actually import DummyPlugin to ensure it was properly loaded
This commit is contained in:
@@ -139,6 +139,10 @@ class TestPicardPluginsInstall(TestPicardPluginsCommonTmpDir):
|
||||
self.assertEqual(len(pm.plugins), 1, msg)
|
||||
self.assertEqual(pm.plugins[0].name, 'Dummy plugin', msg)
|
||||
|
||||
# if module is properly loaded, this should work
|
||||
from picard.plugins.dummyplugin import DummyPlugin
|
||||
d = DummyPlugin()
|
||||
|
||||
def _test_plugin_install_data(self, name):
|
||||
# simulate installation from UI using data from picard plugins api web service
|
||||
with open(_testplugins[name], 'rb') as f:
|
||||
@@ -152,6 +156,10 @@ class TestPicardPluginsInstall(TestPicardPluginsCommonTmpDir):
|
||||
self.assertEqual(len(pm.plugins), 1, msg)
|
||||
self.assertEqual(pm.plugins[0].name, 'Dummy plugin', msg)
|
||||
|
||||
# if module is properly loaded, this should work
|
||||
from picard.plugins.dummyplugin import DummyPlugin
|
||||
d = DummyPlugin()
|
||||
|
||||
# module
|
||||
def test_plugin_install_module(self):
|
||||
self._test_plugin_install('module')
|
||||
|
||||
Reference in New Issue
Block a user