diff --git a/tests/functional/openlp_core_utils/test_applocation.py b/tests/functional/openlp_core_utils/test_applocation.py index d823b077c..23e7c008c 100644 --- a/tests/functional/openlp_core_utils/test_applocation.py +++ b/tests/functional/openlp_core_utils/test_applocation.py @@ -83,7 +83,10 @@ class TestAppLocation(TestCase): mocked_listdir.return_value = copy.deepcopy(FILE_LIST) # When: Get the list of files. - result = AppLocation.get_files(u'section', u'.mp3') + result = AppLocation.get_files(u'sectidon', u'.mp3') + + # Then: Check if the section parameter was used correctly. + mocked_listdir.assert_called_with(u'test/dir/section') # Then: check if the file lists are identical. assert result == [u'file5.mp3', u'file6.mp3'], u'The file lists should be identical.'