Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.common.test_identifiers::Tests / Python tests / test_get_swhids_info_characters_and_url_escaping
Failed

TEST RESULT

Run At
Mar 10 2021, 11:39 AM
Details
archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7f87b0e89f28> @given(origin(), directory()) > def test_get_swhids_info_characters_and_url_escaping(archive_data, origin, directory): .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_identifiers.py:417: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/common/test_identifiers.py:418: in test_get_swhids_info_characters_and_url_escaping snapshot_context = get_snapshot_context(origin_url=origin["url"]) .tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py:474: in get_snapshot_context origin_info, timestamp, visit_id, snapshot_id .tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py:398: in get_origin_visit_snapshot return get_snapshot_content(visit_info["snapshot"]) .tox/py3/lib/python3.7/site-packages/swh/web/browse/snapshot_context.py:343: in get_snapshot_content snapshot_id, branches_count=snapshot_content_max_size _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ snapshot_id = 'a939fc6ac1a445973cd6eecc04e86afd7b46bbfa', branches_from = '' branches_count = 1000, target_types = None, branch_name_include_pattern = None branch_name_exclude_prefix = None def lookup_snapshot( snapshot_id: str, branches_from: str = "", branches_count: int = 1000, target_types: Optional[List[str]] = None, branch_name_include_pattern: Optional[str] = None, branch_name_exclude_prefix: Optional[str] = None, ) -> Dict[str, Any]: """Return information about a snapshot, aka the list of named branches found during a specific visit of an origin. Args: snapshot_id: sha1 identifier of the snapshot branches_from: optional parameter used to skip branches whose name is lesser than it before returning them branches_count: optional parameter used to restrain the amount of returned branches target_types: optional parameter used to filter the target types of branch to return (possible values that can be contained in that list are `'content', 'directory', 'revision', 'release', 'snapshot', 'alias'`) branch_name_include_pattern: if provided, only return branches whose name contains given pattern branch_name_exclude_prefix: if provided, do not return branches whose name starts with given pattern Returns: A dict filled with the snapshot content. """ snapshot_id_bin = _to_sha1_bin(snapshot_id) partial_branches = storage.snapshot_get_branches( snapshot_id_bin, branches_from.encode(), branches_count, target_types, branch_name_include_pattern.encode() if branch_name_include_pattern else None, > branch_name_exclude_prefix.encode() if branch_name_exclude_prefix else None, ) E TypeError: snapshot_get_branches() takes from 2 to 5 positional arguments but 7 were given .tox/py3/lib/python3.7/site-packages/swh/web/common/archive.py:1088: TypeError