diff --git a/tests/functional/openlp_core_lib/test_lib_module.py b/tests/functional/openlp_core_lib/test_lib_module.py index a2ea57eed..89a3301f2 100644 --- a/tests/functional/openlp_core_lib/test_lib_module.py +++ b/tests/functional/openlp_core_lib/test_lib_module.py @@ -127,7 +127,7 @@ class TestLibModule(TestCase): # GIVEN: A directory to check and a mocked out os.makedirs and os.path.exists directory_to_check = u'existing/directory' - # WHEN: os.path.exists returns Truew and we check to see if the directory exists + # WHEN: os.path.exists returns True and we check to see if the directory exists mocked_exists.return_value = True check_directory_exists(directory_to_check) @@ -154,4 +154,5 @@ class TestLibModule(TestCase): mocked_exists.side_effect = ValueError() # THEN: check_directory_exists raises an exception + mocked_exists.assert_called_with(directory_to_check) self.assertRaises(ValueError, check_directory_exists, directory_to_check) diff --git a/tests/functional/openlp_core_utils/test_utils.py b/tests/functional/openlp_core_utils/test_utils.py new file mode 100644 index 000000000..dd5c44e90 --- /dev/null +++ b/tests/functional/openlp_core_utils/test_utils.py @@ -0,0 +1,19 @@ +""" +Functional tests to test the AppLocation class and related methods. +""" +from unittest import TestCase + +from mock import patch + +from openlp.core.utils import get_filesystem_encoding + +class TestUtils(TestCase): + """ + A test suite to test out various methods around the AppLocation class. + """ + def get_filesystem_encoding_test(self): + """ + Test the get_filesystem_encoding() function + """ + assert False, u'This test needs to be written' +