def test_loader_svn_new_visit(swh_storage, datadir, tmp_path): repo_url = prepare_repository("pkg-gourmet.tgz", resources_path=datadir) loader = SvnLoader( repo_url, destination_path=tmp_path ) assert loader.load() == {"status": "eventful"} # TODO: insert checks on hashes here assert_last_visit_matches( loader.storage, repo_url, status="full", type="svn", snapshot=GOURMET_SNAPSHOT, )