Page MenuHomeSoftware Heritage
Paste P711

svn test refactoring target!
ActivePublic

Authored by ardumont on Jul 2 2020, 6:06 PM.
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,
)