minor fixes

This commit is contained in:
Tim Bentley 2013-04-23 20:17:25 +01:00
parent 11112e7712
commit 0ef65fb8d2
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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')