swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7f07f95c1048>
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f07f953db70>
def test_debian_loader_only_md5_sum_in_dsc(swh_storage, requests_mock_datadir):
packages_per_version = deepcopy(PACKAGES_PER_VERSION)
for package_files in packages_per_version.values():
for package_data in package_files["files"].values():
del package_data["sha256"]
loader = DebianLoader(swh_storage, URL, packages=packages_per_version)
actual_load_status = loader.load()
expected_snapshot_id = "a83fa5c089b048161f0677b9614a4aae96a6ca18"
> assert actual_load_status == {
"status": "eventful",
"snapshot_id": expected_snapshot_id,
}
E AssertionError: assert {'snapshot_id...': 'eventful'} == {'snapshot_id...': 'eventful'}
E Omitting 1 identical items, use -vv to show
E Differing items:
E {'snapshot_id': '474c0e3d5796d15363031c333533527d659c559e'} != {'snapshot_id': 'a83fa5c089b048161f0677b9614a4aae96a6ca18'}
E Full diff:
E {
E - 'snapshot_id': 'a83fa5c089b048161f0677b9614a4aae96a6ca18',
E + 'snapshot_id': '474c0e3d5796d15363031c333533527d659c559e',...
E
E ...Full output truncated (3 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/loader/package/debian/tests/test_debian.py:509: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Dec 7 2021, 11:08 AM