Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/storage/test_api_client.py
# Copyright (C) 2015-2018 The Software Heritage developers | # Copyright (C) 2015-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 | ||||
from swh.core.tests.server_testing import ServerTestFixture | from swh.core.tests.server_testing import ServerTestFixture | ||||
from swh.indexer.storage import INDEXER_CFG_KEY | from swh.indexer.storage import INDEXER_CFG_KEY | ||||
from swh.indexer.storage.api.client import RemoteStorage | from swh.indexer.storage.api.client import RemoteStorage | ||||
from swh.indexer.storage.api.server import app | from swh.indexer.storage.api.server import app | ||||
from .test_storage import CommonTestStorage | from .test_storage import CommonTestStorage, BasePgTestStorage | ||||
class TestRemoteStorage(CommonTestStorage, ServerTestFixture, | class TestRemoteStorage(CommonTestStorage, ServerTestFixture, | ||||
unittest.TestCase): | BasePgTestStorage, unittest.TestCase): | ||||
"""Test the indexer's remote storage API. | """Test the indexer's remote storage API. | ||||
This class doesn't define any tests as we want identical | This class doesn't define any tests as we want identical | ||||
functionality between local and remote storage. All the tests are | functionality between local and remote storage. All the tests are | ||||
therefore defined in | therefore defined in | ||||
`class`:swh.indexer.storage.test_storage.CommonTestStorage. | `class`:swh.indexer.storage.test_storage.CommonTestStorage. | ||||
""" | """ | ||||
Show All 13 Lines |