self = <swh.storage.tests.test_storage.TestStorage object at 0x7f466c12ff98>
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f466c12fe10>
def test_metadata_fetcher_add_get(self, swh_storage):
actual_fetcher = swh_storage.metadata_fetcher_get(
> data.metadata_fetcher["name"], data.metadata_fetcher["version"]
)
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3179:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/storage/metrics.py:24: in d
return f(*a, **kw)
.tox/py3/lib/python3.7/site-packages/swh/core/db/common.py:62: in _meth
return meth(self, *args, db=db, cur=cur, **kwargs)
.tox/py3/lib/python3.7/site-packages/swh/storage/storage.py:1320: in metadata_fetcher_get
row = db.metadata_fetcher_get(name, version, cur=cur)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.storage.db.Db object at 0x7f466c12fcc0>, name = 'swh-deposit'
version = '0.0.1', cur = <cursor object at 0x7f478e6b1dd8; closed: -1>
def metadata_fetcher_get(self, name: str, version: str, cur=None):
cur = self._cursor(cur)
cur.execute(
f"SELECT {', '.join(self.metadata_fetcher_cols)} "
f"FROM metadata_fetcher "
f"WHERE name=%s AND version=%s",
> (name, version),
)
E psycopg2.errors.UndefinedTable: relation "metadata_fetcher" does not exist
E LINE 1: SELECT name, version, metadata FROM metadata_fetcher WHERE n...
E ^
.tox/py3/lib/python3.7/site-packages/swh/storage/db.py:1155: UndefinedTable
TEST RESULT
TEST RESULT
- Run At
- May 20 2020, 9:28 AM