Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/tests/conftest.py
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
@pytest.fixture() | @pytest.fixture() | ||||
def deposit_config(swh_scheduler_config, swh_storage_backend_config): | def deposit_config(swh_scheduler_config, swh_storage_backend_config): | ||||
return { | return { | ||||
"max_upload_size": 500, | "max_upload_size": 500, | ||||
"extraction_dir": "/tmp/swh-deposit/test/extraction-dir", | "extraction_dir": "/tmp/swh-deposit/test/extraction-dir", | ||||
"checks": False, | "checks": False, | ||||
"scheduler": {"cls": "local", **swh_scheduler_config,}, | "scheduler": {"cls": "local", **swh_scheduler_config,}, | ||||
"storage": swh_storage_backend_config, | |||||
"storage_metadata": swh_storage_backend_config, | "storage_metadata": swh_storage_backend_config, | ||||
} | } | ||||
@pytest.fixture() | @pytest.fixture() | ||||
def deposit_config_path(tmp_path, monkeypatch, deposit_config): | def deposit_config_path(tmp_path, monkeypatch, deposit_config): | ||||
conf_path = os.path.join(tmp_path, "deposit.yml") | conf_path = os.path.join(tmp_path, "deposit.yml") | ||||
with open(conf_path, "w") as f: | with open(conf_path, "w") as f: | ||||
▲ Show 20 Lines • Show All 382 Lines • Show Last 20 Lines |