From 839df08eb76a1b66ebe7bfe365e77b8699402384 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Thu, 25 Sep 2014 17:02:10 +0200 Subject: [PATCH] Another test fix --- tests/helpers/songfileimport.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/helpers/songfileimport.py b/tests/helpers/songfileimport.py index 01bfafdd8..7a911dea8 100644 --- a/tests/helpers/songfileimport.py +++ b/tests/helpers/songfileimport.py @@ -34,6 +34,8 @@ import json import logging 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 log = logging.getLogger(__name__) @@ -53,6 +55,7 @@ class SongImportTestHelper(TestCase): """ Patch and set up the mocks required. """ + Registry.create() self.add_copyright_patcher = patch('openlp.plugins.songs.lib.importers.%s.%s.add_copyright' % (self.importer_module_name, self.importer_class_name)) self.add_verse_patcher = patch('openlp.plugins.songs.lib.importers.%s.%s.add_verse' %