Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/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 pytest | |||||
import shutil | import shutil | ||||
import tempfile | import tempfile | ||||
import unittest | import unittest | ||||
from swh.core.tests.server_testing import ServerTestFixture | from swh.core.tests.server_testing import ServerTestFixture | ||||
from swh.storage.api.client import RemoteStorage | from swh.storage.api.client import RemoteStorage | ||||
from swh.storage.api.server import app | from swh.storage.api.server import app | ||||
from swh.storage.tests.test_storage import CommonTestStorage, \ | from swh.storage.tests.test_storage import CommonTestStorage, \ | ||||
Show All 34 Lines | def setUp(self): | ||||
self.app = app | self.app = app | ||||
super().setUp() | super().setUp() | ||||
self.storage = RemoteStorage(self.url()) | self.storage = RemoteStorage(self.url()) | ||||
self.objroot = self.storage_base | self.objroot = self.storage_base | ||||
def tearDown(self): | def tearDown(self): | ||||
super().tearDown() | super().tearDown() | ||||
shutil.rmtree(self.storage_base) | shutil.rmtree(self.storage_base) | ||||
@pytest.mark.skip('refresh_stat_counters not available in the remote api.') | |||||
def test_stat_counters(self): | |||||
pass |