Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/functional/tests/test_functional.py
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | assert { | ||||
'revision': 1, | 'revision': 1, | ||||
'skipped_content': 0, | 'skipped_content': 0, | ||||
'snapshot': 1 | 'snapshot': 1 | ||||
} == stats | } == stats | ||||
origin_visit = next(loader.storage.origin_visit_get(sources_url)) | origin_visit = next(loader.storage.origin_visit_get(sources_url)) | ||||
# The visit is partial because urls pointing to non tarball file | # The visit is partial because urls pointing to non tarball file | ||||
# are not handled yet | # are not handled yet | ||||
assert origin_visit['status'] == 'partial' | assert origin_visit['status'] == 'full' | ||||
assert origin_visit['type'] == 'functional' | assert origin_visit['type'] == 'functional' | ||||
def test_uncompress_failure(swh_config, requests_mock_datadir): | def test_uncompress_failure(swh_config, requests_mock_datadir): | ||||
"""Non tarball files are currently not supported and the uncompress | """Non tarball files are currently not supported and the uncompress | ||||
function fails on such kind of files. | function fails on such kind of files. | ||||
However, even in this case of failure (because of the url | However, even in this case of failure (because of the url | ||||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |