fix tests

This commit is contained in:
Tim Bentley 2016-04-05 19:44:50 +01:00
parent 1725518088
commit 7c88006c7b
4 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ from bs4 import BeautifulSoup, NavigableString, Tag
from openlp.core.common import Registry, RegistryProperties, translate
from openlp.core.lib.ui import critical_error_message_box
from openlp.core.utils import get_web_page
from openlp.core.lib.webpagereader import get_web_page
from openlp.plugins.bibles.lib import SearchResults
from openlp.plugins.bibles.lib.db import BibleDB, BiblesResourcesDB, Book

View File

@ -171,7 +171,7 @@ class TestAppLocation(TestCase):
"""
Test the _get_frozen_path() function when the application is not frozen (compiled by PyInstaller)
"""
with patch('openlp.core.utils.sys') as mocked_sys:
with patch('openlp.core.common.sys') as mocked_sys:
# GIVEN: The sys module "without" a "frozen" attribute
mocked_sys.frozen = None

View File

@ -28,10 +28,10 @@ import urllib.request
import urllib.error
import urllib.parse
from tests.functional import MagicMock, patch
from tests.functional import patch
from tests.helpers.testmixin import TestMixin
from openlp.core.utils import CONNECTION_TIMEOUT, CONNECTION_RETRIES, get_web_page
from openlp.core.lib.webpagereader import CONNECTION_RETRIES, get_web_page
class TestFirstTimeWizard(TestMixin, TestCase):

View File

@ -24,7 +24,7 @@ Functional tests to test the AppLocation class and related methods.
"""
from unittest import TestCase
from openlp.core.utils import _get_user_agent, get_web_page
from openlp.core.lib.webpagereader import _get_user_agent, get_web_page
from tests.functional import MagicMock, patch