Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 21 2020, 12:34 PM
Details
request = <SubRequest 'swh_storage_postgresql' for <Function test_types>> @pytest.fixture def postgresql_factory(request): """ Fixture factory for PostgreSQL. :param FixtureRequest request: fixture request object :rtype: psycopg2.connection :returns: postgresql client """ config = factories.get_config(request) if not psycopg2: raise ImportError("No module named psycopg2. Please install it.") proc_fixture = request.getfixturevalue(process_fixture_name) # _, config = try_import('psycopg2', request) pg_host = proc_fixture.host pg_port = proc_fixture.port pg_user = proc_fixture.user pg_options = proc_fixture.options pg_db = db_name or config["dbname"] with SwhDatabaseJanitor( pg_user, pg_host, pg_port, pg_db, proc_fixture.version, > dump_files=dump_files, ): .tox/py3/lib/python3.7/site-packages/swh/storage/tests/conftest.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/pytest_postgresql/janitor.py:98: in __enter__ self.init() .tox/py3/lib/python3.7/site-packages/swh/storage/tests/conftest.py:213: in init self.db_setup() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.tests.conftest.SwhDatabaseJanitor object at 0x7fdab59086d8> def db_setup(self): with psycopg2.connect( dbname=self.db_name, user=self.user, host=self.host, port=self.port, ) as cnx: with cnx.cursor() as cur: for fname in self.dump_files: with open(fname) as fobj: sql = fobj.read().replace("concurrently", "").strip() if sql: > cur.execute(sql) E psycopg2.errors.SyntaxError: syntax error at or near "comment" E LINE 430: comment on column origin_metadata.metadata is 'original meta... E ^ .tox/py3/lib/python3.7/site-packages/swh/storage/tests/conftest.py:169: SyntaxError