test: Update more init_tests that were failing because of wording or Link->Snapshot changes

This commit is contained in:
Cristian 2021-01-17 10:03:26 -05:00
parent 49b5241a7c
commit ce5979de45
3 changed files with 7 additions and 6 deletions

View file

@ -353,7 +353,7 @@ def init(force: bool=False, out_dir: Path=OUTPUT_DIR) -> None:
orphaned_json_snapshots = {
snapshot.url: snapshot
for snapshot in parse_json_main_index(out_dir)
if not all_snapshots.filter(url=link.url).exists()
if not all_snapshots.filter(url=snapshot.url).exists()
}
if orphaned_json_snapshots:
pending_snapshots.update(orphaned_json_snapshots)