forked from openlp/openlp
doc strings an typos
This commit is contained in:
parent
f1f0ab9c3d
commit
88f69ea7c4
@ -50,7 +50,7 @@ class TestImageMediaItem(TestCase):
|
||||
|
||||
def validate_and_load_test(self):
|
||||
"""
|
||||
Test that the validate_and_load_test() method
|
||||
Test that the validate_and_load_test() method when called without a group
|
||||
"""
|
||||
# GIVEN: A list of files
|
||||
file_list = ['/path1/image1.jpg', '/path2/image2.jpg']
|
||||
@ -62,13 +62,13 @@ class TestImageMediaItem(TestCase):
|
||||
self.media_item.validate_and_load(file_list)
|
||||
|
||||
# THEN: load_list should have been called with the file list and None,
|
||||
# the dectory should have been saved to the settings
|
||||
# the directory should have been saved to the settings
|
||||
mocked_load_list.assert_called_once_with(file_list, None)
|
||||
mocked_settings().setValue.assert_called_once_with(ANY, '/path1')
|
||||
|
||||
def validate_and_load_group_test(self):
|
||||
"""
|
||||
Test that the validate_and_load_test() method
|
||||
Test that the validate_and_load_test() method when called with a group
|
||||
"""
|
||||
# GIVEN: A list of files
|
||||
file_list = ['/path1/image1.jpg', '/path2/image2.jpg']
|
||||
@ -80,7 +80,7 @@ class TestImageMediaItem(TestCase):
|
||||
self.media_item.validate_and_load(file_list, 'group')
|
||||
|
||||
# THEN: load_list should have been called with the file list and the group name,
|
||||
# the dectory should have been saved to the settings
|
||||
# the directory should have been saved to the settings
|
||||
mocked_load_list.assert_called_once_with(file_list, 'group')
|
||||
mocked_settings().setValue.assert_called_once_with(ANY, '/path1')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user