Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/mercurial/tests/test_from_disk.py
Show First 20 Lines • Show All 719 Lines • ▼ Show 20 Lines | def test_loader_hg_extid_filtering(swh_storage, datadir, tmp_path): | ||||
visit_status2 = assert_last_visit_matches( | visit_status2 = assert_last_visit_matches( | ||||
loader.storage, fork_url, status="full", type="hg", | loader.storage, fork_url, status="full", type="hg", | ||||
) | ) | ||||
assert visit_status.snapshot is not None | assert visit_status.snapshot is not None | ||||
assert visit_status2.snapshot == visit_status.snapshot | assert visit_status2.snapshot == visit_status.snapshot | ||||
@pytest.mark.xfail | def test_loader_repository_with_bookmark_information(swh_storage, datadir, tmp_path): | ||||
def test_loader_missing_hgnodeid_mapping(swh_storage, datadir, tmp_path): | """Repository with bookmark information should be ingested correctly | ||||
"""TODO: Analyze this issue and update the comment about the proper behavior. | |||||
""" | """ | ||||
archive_name = "anomad-d" | archive_name = "anomad-d" | ||||
archive_path = os.path.join(datadir, f"{archive_name}.tgz") | archive_path = os.path.join(datadir, f"{archive_name}.tgz") | ||||
repo_url = prepare_repository_from_archive(archive_path, archive_name, tmp_path) | repo_url = prepare_repository_from_archive(archive_path, archive_name, tmp_path) | ||||
loader = HgLoaderFromDisk(swh_storage, url=repo_url) | loader = HgLoaderFromDisk(swh_storage, url=repo_url) | ||||
assert loader.load() == {"status": "eventful"} | assert loader.load() == {"status": "eventful"} |