Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_db::test_add_content
Failed

TEST RESULT

Run At
May 20 2020, 9:28 AM
Details
swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f45bef14390> def test_add_content(swh_storage): with swh_storage.db() as db: cur = db.cursor() sha1 = hash_to_bytes("34973274ccef6ab4dfaaf86599792fa9c3fe4689") > db.mktemp("content", cur) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_db.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.db.Db object at 0x7f45bce005f8>, tblname = 'content' cur = <cursor object at 0x7f478e6b1710; closed: 0> def mktemp(self, tblname, cur=None): > self.cursor(cur).execute("SELECT swh_mktemp(%s)", (tblname,)) E psycopg2.errors.UndefinedFunction: function swh_mktemp(unknown) does not exist E LINE 1: SELECT swh_mktemp('content') E ^ E HINT: No function matches the given name and argument types. You might need to add explicit type casts. .tox/py3/lib/python3.7/site-packages/swh/core/db/__init__.py:216: UndefinedFunction