diff --git a/swh/indexer/tests/utils.py b/swh/indexer/tests/utils.py --- a/swh/indexer/tests/utils.py +++ b/swh/indexer/tests/utils.py @@ -39,27 +39,21 @@ } -ORIGINS = [ - Origin(url="https://github.com/SoftwareHeritage/swh-storage"), - Origin(url="rsync://ftp.gnu.org/gnu/3dldf"), - Origin(url="https://forge.softwareheritage.org/source/jesuisgpl/"), - Origin(url="https://pypi.org/project/limnoria/"), - Origin(url="http://0-512-md.googlecode.com/svn/"), - Origin(url="https://github.com/librariesio/yarn-parser"), - Origin(url="https://github.com/librariesio/yarn-parser.git"), -] - - ORIGIN_VISITS = [ - {"type": "git", "origin": ORIGINS[0].url}, - {"type": "ftp", "origin": ORIGINS[1].url}, - {"type": "deposit", "origin": ORIGINS[2].url}, - {"type": "pypi", "origin": ORIGINS[3].url}, - {"type": "svn", "origin": ORIGINS[4].url}, - {"type": "git", "origin": ORIGINS[5].url}, - {"type": "git", "origin": ORIGINS[6].url}, + {"type": "git", "origin": "https://github.com/SoftwareHeritage/swh-storage"}, + {"type": "ftp", "origin": "rsync://ftp.gnu.org/gnu/3dldf"}, + { + "type": "deposit", + "origin": "https://forge.softwareheritage.org/source/jesuisgpl/", + }, + {"type": "pypi", "origin": "https://pypi.org/project/limnoria/"}, + {"type": "svn", "origin": "http://0-512-md.googlecode.com/svn/"}, + {"type": "git", "origin": "https://github.com/librariesio/yarn-parser"}, + {"type": "git", "origin": "https://github.com/librariesio/yarn-parser.git"}, ] +ORIGINS = [Origin(url=visit["origin"]) for visit in ORIGIN_VISITS] + DIRECTORY = Directory( id=hash_to_bytes("34f335a750111ca0a8b64d8034faec9eedc396be"),