Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/tests/test_cli.py
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | def test_cli_origin_from_csv( | ||||
provenance, | provenance, | ||||
tmp_path, | tmp_path, | ||||
): | ): | ||||
repo = "cmdbts2" | repo = "cmdbts2" | ||||
origin_url = f"https://{repo}" | origin_url = f"https://{repo}" | ||||
data = load_repo_data(repo) | data = load_repo_data(repo) | ||||
fill_storage(swh_storage, data) | fill_storage(swh_storage, data) | ||||
assert len(data["origin"]) == 1 | assert len(data["origin"]) >= 1 | ||||
assert {"url": origin_url} in data["origin"] | assert origin_url in [o["url"] for o in data["origin"]] | ||||
cfg = { | cfg = { | ||||
"provenance": { | "provenance": { | ||||
"archive": { | "archive": { | ||||
"cls": "api", | "cls": "api", | ||||
"storage": swh_storage_backend_config, | "storage": swh_storage_backend_config, | ||||
}, | }, | ||||
"storage": { | "storage": { | ||||
Show All 21 Lines |