From 7879430c96cfb7525db522d9a6467f16789ad019 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 12 Aug 2017 21:08:12 +0100 Subject: [PATCH] fix more tests --- tests/functional/openlp_core_api_http/test_http.py | 3 +-- tests/functional/openlp_core_api_http/test_wsgiapp.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/functional/openlp_core_api_http/test_http.py b/tests/functional/openlp_core_api_http/test_http.py index fe7fe2b65..f93edf49a 100644 --- a/tests/functional/openlp_core_api_http/test_http.py +++ b/tests/functional/openlp_core_api_http/test_http.py @@ -24,12 +24,11 @@ Functional tests to test the Http Server Class. """ from unittest import TestCase +from unittest.mock import MagicMock, patch from openlp.core.common import Registry from openlp.core.api.http.server import HttpServer -from tests.functional import patch, MagicMock - class TestHttpServer(TestCase): """ diff --git a/tests/functional/openlp_core_api_http/test_wsgiapp.py b/tests/functional/openlp_core_api_http/test_wsgiapp.py index 577bf8b20..aff27404a 100644 --- a/tests/functional/openlp_core_api_http/test_wsgiapp.py +++ b/tests/functional/openlp_core_api_http/test_wsgiapp.py @@ -25,11 +25,11 @@ Functional test the routing code. import os from unittest import TestCase +from unittest.mock import MagicMock + from openlp.core.api.http.endpoint import Endpoint from openlp.core.api.http import register_endpoint, application, NotFound -from tests.functional import MagicMock - ROOT_DIR = os.path.dirname(os.path.realpath(__file__)) test_endpoint = Endpoint('test', template_dir=ROOT_DIR, static_dir=ROOT_DIR)