forked from openlp/openlp
Fully qualified the module path to patch.
This commit is contained in:
parent
de65535435
commit
94224beed5
@ -15,8 +15,8 @@ class TestUtils(TestCase):
|
|||||||
"""
|
"""
|
||||||
Test the get_filesystem_encoding() function
|
Test the get_filesystem_encoding() function
|
||||||
"""
|
"""
|
||||||
with patch(u'sys.getfilesystemencoding') as mocked_getfilesystemencoding, \
|
with patch(u'openlp.core.utils.sys.getfilesystemencoding') as mocked_getfilesystemencoding, \
|
||||||
patch(u'sys.getdefaultencoding') as mocked_getdefaultencoding:
|
patch(u'openlp.core.utils.sys.getdefaultencoding') as mocked_getdefaultencoding:
|
||||||
# GIVEN: sys.getfilesystemencoding returns "cp1252"
|
# GIVEN: sys.getfilesystemencoding returns "cp1252"
|
||||||
mocked_getfilesystemencoding.return_value = u'cp1252'
|
mocked_getfilesystemencoding.return_value = u'cp1252'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user