Another test fix

This commit is contained in:
Tomas Groth 2014-09-25 17:02:10 +02:00
parent 3e66b4aa98
commit 839df08eb7
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,8 @@ import json
import logging import logging
from unittest import TestCase from unittest import TestCase
from openlp.plugins.songs.lib.importers.opensong import OpenSongImport
from openlp.core.common import Registry
from tests.functional import patch, MagicMock, call from tests.functional import patch, MagicMock, call
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
@ -53,6 +55,7 @@ class SongImportTestHelper(TestCase):
""" """
Patch and set up the mocks required. Patch and set up the mocks required.
""" """
Registry.create()
self.add_copyright_patcher = patch('openlp.plugins.songs.lib.importers.%s.%s.add_copyright' % self.add_copyright_patcher = patch('openlp.plugins.songs.lib.importers.%s.%s.add_copyright' %
(self.importer_module_name, self.importer_class_name)) (self.importer_module_name, self.importer_class_name))
self.add_verse_patcher = patch('openlp.plugins.songs.lib.importers.%s.%s.add_verse' % self.add_verse_patcher = patch('openlp.plugins.songs.lib.importers.%s.%s.add_verse' %