Staging instance, all changes can be removed at any time

Skip to content

storage*: release_get(...) -> List[Optional[Release]]

Impacts:

$ grep -r "release_get" $SWH_ENVIRONMENT_HOME/*/swh/** | grep -v swh/storage | grep release_get
/home/tony/work/inria/repo/swh/swh-environment/swh-loader-mercurial/swh/loader/mercurial/tests/test_loader.py:    release = loader.storage.release_get([tip_release])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/common/service.py:    release = _first_element(storage.release_get([sha1_git_bin]))
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/common/service.py:    releases = storage.release_get(sha1_bin_list) or []
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/browse/views/test_origin.py:    release_data = archive_data.release_get(release["target"])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/browse/views/test_release.py:    release_data = archive_data.release_get(release)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/browse/test_snapshot_context.py:                rel_data = archive_data.release_get(branch_data["target"])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/browse/test_snapshot_context.py:    release_data = archive_data.release_get(release_id)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/api/views/test_release.py:    expected_release = archive_data.release_get(release)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/api/views/test_release.py:        expected_release = archive_data.release_get(new_release_id)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/api/test_utils.py:    release_data = archive_data.release_get(release)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/api/test_utils.py:    release_data = archive_data.release_get(release)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/api/test_utils.py:    release_data = archive_data.release_get(release)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/api/test_utils.py:    release_data = archive_data.release_get(release)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/data.py:                release = next(storage.release_get([branch_data.target]))
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/common/test_identifiers.py:        release_data = archive_data.release_get(releases[release])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/common/test_identifiers.py:    release_info["name"] = archive_data.release_get(release_info["release"])["name"]
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/common/test_service.py:    assert actual_release == archive_data.release_get(release)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/common/test_service.py:    expected = archive_data.release_get(release)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/conftest.py:    def release_get(self, rel_id):
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/conftest.py:        rel_data = next(self.storage.release_get([rel_id_bytes]))
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/strategies.py:        lambda s: next(get_tests_data()["storage"].release_get([s])) is None

Related to T645

Test Plan

tox


Migrated from D3852 (view on Phabricator)

Merge request reports

Loading