Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/cvs/tests/test_loader.py
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | def test_loader_cvs_2_visits_no_change(swh_storage, datadir, tmp_path): | ||||
visit_status1 = assert_last_visit_matches( | visit_status1 = assert_last_visit_matches( | ||||
loader.storage, | loader.storage, | ||||
repo_url, | repo_url, | ||||
status="full", | status="full", | ||||
type="cvs", | type="cvs", | ||||
snapshot=RUNBABY_SNAPSHOT.id, | snapshot=RUNBABY_SNAPSHOT.id, | ||||
) | ) | ||||
loader = CvsLoader( | |||||
swh_storage, repo_url, cvsroot_path=os.path.join(tmp_path, archive_name) | |||||
) | |||||
assert loader.load() == {"status": "uneventful"} | assert loader.load() == {"status": "uneventful"} | ||||
visit_status2 = assert_last_visit_matches( | visit_status2 = assert_last_visit_matches( | ||||
loader.storage, | loader.storage, | ||||
repo_url, | repo_url, | ||||
status="full", | status="full", | ||||
type="cvs", | type="cvs", | ||||
snapshot=RUNBABY_SNAPSHOT.id, | snapshot=RUNBABY_SNAPSHOT.id, | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |