Changeset View
Changeset View
Standalone View
Standalone View
swh/core/api/tests/test_api.py
# Copyright (C) 2018 The Software Heritage developers | # Copyright (C) 2018 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import unittest | import unittest | ||||
import requests_mock | import requests_mock # type: ignore | ||||
from werkzeug.wrappers import BaseResponse | from werkzeug.wrappers import BaseResponse | ||||
from werkzeug.test import Client as WerkzeugTestClient | from werkzeug.test import Client as WerkzeugTestClient | ||||
from swh.core.api import ( | from swh.core.api import ( | ||||
error_handler, encode_data_server, | error_handler, encode_data_server, | ||||
remote_api_endpoint, RPCClient, RPCServerApp) | remote_api_endpoint, RPCClient, RPCServerApp) | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |