diff --git a/swh/web/tests/data.py b/swh/web/tests/data.py --- a/swh/web/tests/data.py +++ b/swh/web/tests/data.py @@ -190,7 +190,6 @@ revisions = set() releases = set() snapshots = set() - persons = set() content_path = {} @@ -205,7 +204,6 @@ release = next(storage.release_get([branch_data['target']])) revisions.add(release['target']) releases.add(hash_to_hex(branch_data['target'])) - persons.add(release['author']['id']) for rev_log in storage.revision_shortlog(set(revisions)): rev_id = rev_log[0] @@ -213,8 +211,6 @@ for rev in storage.revision_get(revisions): dir_id = rev['directory'] - persons.add(rev['author']['id']) - persons.add(rev['committer']['id']) directories.add(hash_to_hex(dir_id)) for entry in dir_iterator(storage, dir_id): content_path[entry['sha1']] = '/'.join( @@ -259,7 +255,6 @@ 'origins': _TEST_ORIGINS, 'contents': contents, 'directories': list(directories), - 'persons': list(persons), 'releases': list(releases), 'revisions': list(map(hash_to_hex, revisions)), 'snapshots': list(snapshots), diff --git a/swh/web/tests/strategies.py b/swh/web/tests/strategies.py --- a/swh/web/tests/strategies.py +++ b/swh/web/tests/strategies.py @@ -404,22 +404,6 @@ lambda s: storage.snapshot_get(hash_to_bytes(s)) is None) -def person(): - """ - Hypothesis strategy returning a random person ingested - into the test archive. - """ - return _known_swh_object('persons') - - -def unknown_person(): - """ - Hypothesis strategy returning a random person not ingested - into the test archive. - """ - return integers(min_value=1000000) - - def _get_origin_dfs_revisions_walker(): tests_data = get_tests_data() storage = tests_data['storage']