forked from openlp/openlp
fix more tests
This commit is contained in:
parent
1f09c1c860
commit
7879430c96
@ -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):
|
||||
"""
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user