fixed interface test

This commit is contained in:
Andreas Preikschat 2013-02-18 12:09:09 +01:00
parent b58773cbfe
commit 4366d8307d

View File

@ -29,7 +29,6 @@ class TestPluginManager(TestCase):
self.app = QtGui.QApplication.instance() self.app = QtGui.QApplication.instance()
self.main_window = QtGui.QMainWindow() self.main_window = QtGui.QMainWindow()
Registry().register(u'main_window', self.main_window) Registry().register(u'main_window', self.main_window)
self.plugins_dir = os.path.abspath(os.path.join(os.path.basename(__file__), u'..', u'openlp', u'plugins'))
def tearDown(self): def tearDown(self):
os.unlink(self.ini_file) os.unlink(self.ini_file)
@ -40,7 +39,7 @@ class TestPluginManager(TestCase):
Test the find_plugins() method to ensure it imports the correct plugins. Test the find_plugins() method to ensure it imports the correct plugins.
""" """
# GIVEN: A plugin manager # GIVEN: A plugin manager
plugin_manager = PluginManager(self.plugins_dir) plugin_manager = PluginManager()
# WHEN: We mock out sys.platform to make it return "darwin" and then find the plugins # WHEN: We mock out sys.platform to make it return "darwin" and then find the plugins
old_platform = sys.platform old_platform = sys.platform