From 392dc312232ca3320fbba8807a44871e33765793 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Thu, 6 Dec 2012 14:58:19 +0200 Subject: [PATCH] Tried to fix a problem with a test on Jenkins. --- tests/functional/openlp_core_utils/test_applocation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/functional/openlp_core_utils/test_applocation.py b/tests/functional/openlp_core_utils/test_applocation.py index b5d295c2b..048b036d0 100644 --- a/tests/functional/openlp_core_utils/test_applocation.py +++ b/tests/functional/openlp_core_utils/test_applocation.py @@ -101,10 +101,13 @@ class TestAppLocation(TestCase): """ with patch(u'openlp.core.utils._get_frozen_path') as mocked_get_frozen_path, \ patch(u'openlp.core.utils.os.path.abspath') as mocked_abspath, \ + patch(u'openlp.core.utils.os.path.split') as mocked_split, \ patch(u'openlp.core.utils.sys') as mocked_sys: mocked_abspath.return_value = u'plugins/dir' + mocked_split.return_value = [u'openlp'] mocked_get_frozen_path.return_value = u'plugins/dir' mocked_sys.frozen = 1 + mocked_sys.argv = ['openlp'] # WHEN: We call AppLocation.get_directory directory = AppLocation.get_directory(AppLocation.PluginsDir) # THEN: