forked from openlp/openlp
format changes
This commit is contained in:
parent
63d65da6c1
commit
f32409b5a5
@ -316,7 +316,7 @@ class MessageListener(object):
|
|||||||
hide_mode = message[2]
|
hide_mode = message[2]
|
||||||
file = item.get_frame_path()
|
file = item.get_frame_path()
|
||||||
self.handler = item.processor
|
self.handler = item.processor
|
||||||
if self.handler == self.media_item.Automatic:
|
if self.handler == self.media_item.automatic:
|
||||||
self.handler = self.media_item.findControllerByType(file)
|
self.handler = self.media_item.findControllerByType(file)
|
||||||
if not self.handler:
|
if not self.handler:
|
||||||
return
|
return
|
||||||
|
@ -75,7 +75,7 @@ class TestThemeManagerHelper(TestCase):
|
|||||||
self.assertEqual(1, self.helper.build_theme_path.call_count,
|
self.assertEqual(1, self.helper.build_theme_path.call_count,
|
||||||
'The function build_theme_path should have been called')
|
'The function build_theme_path should have been called')
|
||||||
self.assertEqual(1, self.helper.load_first_time_themes.call_count,
|
self.assertEqual(1, self.helper.load_first_time_themes.call_count,
|
||||||
'The function load_first_time_themes should have been called')
|
'The function load_first_time_themes should have been called only once')
|
||||||
self.assertEqual(self.helper.global_theme , 'my_theme',
|
self.assertEqual(self.helper.global_theme , 'my_theme',
|
||||||
'The global theme should have been set to my_theme')
|
'The global theme should have been set to my_theme')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user