Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/svn/tests/test_loader.py
Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | def test_loader_tampered_repository(swh_storage, datadir, tmp_path): | ||||
) | ) | ||||
assert loader2.load() == {"status": "eventful"} | assert loader2.load() == {"status": "eventful"} | ||||
assert_last_visit_matches( | assert_last_visit_matches( | ||||
loader2.storage, | loader2.storage, | ||||
repo_url, | repo_url, | ||||
status="full", | status="full", | ||||
type="svn", | type="svn", | ||||
snapshot=hash_to_bytes("c499eebc1e201024d47d24053ac0080049305897"), | snapshot=hash_to_bytes("5aa61959e788e281fd6e187053d0f46c68e8d8bb"), | ||||
) | ) | ||||
stats = get_stats(loader.storage) | stats = get_stats(loader.storage) | ||||
assert stats["origin"] == 1 | assert stats["origin"] == 1 | ||||
assert stats["origin_visit"] == 2 | assert stats["origin_visit"] == 2 | ||||
assert stats["snapshot"] == 2 | assert stats["snapshot"] == 2 | ||||
▲ Show 20 Lines • Show All 1,145 Lines • Show Last 20 Lines |