Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/tests/cli/test_client.py
Show All 18 Lines | |||||
EXAMPLE_SERVICE_DOCUMENT = { | EXAMPLE_SERVICE_DOCUMENT = { | ||||
"service": {"workspace": {"collection": {"sword:name": "softcol",}}} | "service": {"workspace": {"collection": {"sword:name": "softcol",}}} | ||||
} | } | ||||
@pytest.fixture | @pytest.fixture | ||||
def datadir(request): | |||||
"""Override default datadir to target main test datadir""" | |||||
return os.path.join(os.path.dirname(str(request.fspath)), "../data") | |||||
@pytest.fixture | |||||
def slug(): | def slug(): | ||||
return generate_slug() | return generate_slug() | ||||
@pytest.fixture | @pytest.fixture | ||||
def client_mock(mocker, slug): | def client_mock(mocker, slug): | ||||
"""A successful deposit client with hard-coded default values | """A successful deposit client with hard-coded default values | ||||
▲ Show 20 Lines • Show All 423 Lines • Show Last 20 Lines |