fix tests

This commit is contained in:
Tim Bentley 2016-04-05 20:33:37 +01:00
parent fb2de75cbc
commit b6c49450d4

View File

@ -37,7 +37,7 @@ class TestUtils(TestCase):
"""
Test that getting a user agent on Linux returns a user agent suitable for Linux
"""
with patch('openlp.core.lib.sys') as mocked_sys:
with patch('openlp.core.lib.webpagereader.sys') as mocked_sys:
# GIVEN: The system is Linux
mocked_sys.platform = 'linux2'
@ -53,7 +53,7 @@ class TestUtils(TestCase):
"""
Test that getting a user agent on Windows returns a user agent suitable for Windows
"""
with patch('openlp.core.lib.sys') as mocked_sys:
with patch('openlp.core.lib.webpagereader.sys') as mocked_sys:
# GIVEN: The system is Linux
mocked_sys.platform = 'win32'