fix more tests

This commit is contained in:
Tim Bentley 2017-08-12 21:08:12 +01:00
parent 1f09c1c860
commit 7879430c96
2 changed files with 3 additions and 4 deletions

View File

@ -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):
"""

View File

@ -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)