Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.indexer.tests.test_origin_metadata::test_origin_metadata_indexer_duplicate_revision
Failed

TEST RESULT

Run At
Apr 18 2022, 8:43 PM
Details
swh_indexer_config = {'compute_checksums': ['blake2b512'], 'indexer_storage': {'cls': 'local', 'db': "user=postgres password=xxx dbname=ind...uler': {'cls': 'local', 'db': "user=postgres password=xxx dbname=scheduler host=127.0.0.1 port=26520 options=''"}, ...} idx_storage = <swh.indexer.storage.IndexerStorage object at 0x7f60c81501d0> storage = <swh.storage.postgresql.storage.Storage object at 0x7f60c8150518> obj_storage = <swh.objstorage.backends.in_memory.InMemoryObjStorage object at 0x7f60c8150320> def test_origin_metadata_indexer_duplicate_revision( swh_indexer_config, idx_storage: IndexerStorageInterface, storage: StorageInterface, obj_storage, ) -> None: indexer = OriginMetadataIndexer(config=swh_indexer_config) indexer.storage = storage indexer.idx_storage = idx_storage indexer.catch_exceptions = False origin1 = "https://github.com/librariesio/yarn-parser" origin2 = "https://github.com/librariesio/yarn-parser.git" indexer.run([origin1, origin2]) rev_id = REVISION.id rev_results = list(indexer.idx_storage.revision_intrinsic_metadata_get([rev_id])) > assert len(rev_results) == 1 E assert 0 == 1 E +0 E -1 .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/test_origin_metadata.py:168: AssertionError