Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_storage.TestStorage::test_revision_log_with_limit
Failed

TEST RESULT

Run At
Aug 5 2020, 8:58 AM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7f81ca739630> swh_storage = <swh.storage.storage.Storage object at 0x7f81ca739748> sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f81ca6dfac8> def test_revision_log_with_limit(self, swh_storage, sample_data): revision1, revision2, revision3, revision4 = sample_data.revisions[:4] # revision4 -is-child-of-> revision3 swh_storage.revision_add([revision3, revision4]) > results = list(swh_storage.revision_log([revision4.id], 1)) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:954: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/core/db/common.py:97: in _meth yield from meth(self, *args, db=db, cur=cur, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.storage.Storage object at 0x7f81ca739748> revisions = [b'\x88\xcdQ&\xfc\x95\x8e\xd7\x00\x89\xd54\x04A\xa1\xc2G{\xcc '] limit = 1, db = <swh.storage.db.Db object at 0x7f81f0994278> cur = <cursor object at 0x7f8399509be8; closed: -1> @timed @db_transaction_generator(statement_timeout=2000) def revision_log( self, revisions: List[Sha1Git], limit: Optional[int] = None, db=None, cur=None ) -> Iterable[Optional[Dict[str, Any]]]: for line in db.revision_log(revisions, limit, cur): data = converters.db_to_revision(dict(zip(db.revision_get_cols, line))) > if not line["type"]: E TypeError: tuple indices must be integers or slices, not str .tox/py3/lib/python3.7/site-packages/swh/storage/storage.py:635: TypeError