Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/mercurial/tests/test_from_disk.py
Show First 20 Lines • Show All 717 Lines • ▼ Show 20 Lines | def test_loader_hg_extid_filtering(swh_storage, datadir, tmp_path): | ||||
) | ) | ||||
assert stats == expected_stats2 | assert stats == expected_stats2 | ||||
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_missing_hgnodeid_mapping(swh_storage, datadir, tmp_path): | |||||
vlorentz: should change this docstring | |||||
Done Inline Actionsright. I should even drop it as i don't know what the current problem actually is. ardumont: right. I should even drop it as i don't know what the current problem actually is. | |||||
"""TODO: Analyze this issue and update the comment about the proper behavior. | |||||
""" | |||||
archive_name = "anomad-d" | |||||
archive_path = os.path.join(datadir, f"{archive_name}.tgz") | |||||
repo_url = prepare_repository_from_archive(archive_path, archive_name, tmp_path) | |||||
loader = HgLoaderFromDisk(swh_storage, url=repo_url) | |||||
assert loader.load() == {"status": "eventful"} |
should change this docstring