forked from openlp/openlp
minor fixes
This commit is contained in:
parent
11112e7712
commit
0ef65fb8d2
@ -52,4 +52,4 @@ This allows OpenLP to use ``self.object`` for all the GUI elements while keeping
|
||||
them separate from the functionality, so that it is easier to recreate the GUI
|
||||
from the .ui files later if necessary.
|
||||
"""
|
||||
from editsongform import EditSongForm
|
||||
from editsongform import EditSongForm
|
||||
|
@ -26,7 +26,7 @@ class TestMediaItem(TestCase):
|
||||
Registry().register(u'service_list', MagicMock())
|
||||
|
||||
with patch('openlp.core.lib.mediamanageritem.MediaManagerItem.__init__'), \
|
||||
patch('openlp.plugins.songs.forms.editsongform.EditSongForm.__init__') :
|
||||
patch('openlp.plugins.songs.forms.editsongform.EditSongForm.__init__'):
|
||||
self.media_item = SongMediaItem(MagicMock(), MagicMock())
|
||||
|
||||
fd, self.ini_file = mkstemp(u'.ini')
|
||||
@ -42,7 +42,7 @@ class TestMediaItem(TestCase):
|
||||
try:
|
||||
os.unlink(self.ini_file)
|
||||
os.unlink(Settings().fileName())
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def build_song_footer_one_author_test(self):
|
||||
@ -122,4 +122,4 @@ class TestMediaItem(TestCase):
|
||||
|
||||
# THEN: I would get an amended footer string
|
||||
self.assertEqual(service_item.raw_footer, [u'My Song', u'my author', u'My copyright', u'CCLI License: 4321'],
|
||||
u'The array should be returned correctly with a song, an author, copyright and amended ccli')
|
||||
u'The array should be returned correctly with a song, an author, copyright and amended ccli')
|
||||
|
Loading…
Reference in New Issue
Block a user