X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d856788bf5cf7b4b3e2b4de10f37cf3002ae6826..c70dfccacac90a90bfc193f49262abe7505d7d75:/test/python/conftest.py diff --git a/test/python/conftest.py b/test/python/conftest.py index a25ff8ec..f95da39e 100644 --- a/test/python/conftest.py +++ b/test/python/conftest.py @@ -2,7 +2,7 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2024 by the Nominatim developer community. +# Copyright (C) 2025 by the Nominatim developer community. # For a full list of authors see the git log. import itertools import sys @@ -69,6 +69,7 @@ def temp_db_with_extensions(temp_db): return temp_db + @pytest.fixture def temp_db_conn(temp_db): """ Connection to the test database. @@ -100,8 +101,9 @@ def table_factory(temp_db_conn): if content: sql = pysql.SQL("INSERT INTO {} VALUES ({})")\ .format(pysql.Identifier(name), - pysql.SQL(',').join([pysql.Placeholder() for _ in range(len(content[0]))])) - cur.executemany(sql , content) + pysql.SQL(',').join([pysql.Placeholder() + for _ in range(len(content[0]))])) + cur.executemany(sql, content) return mk_table @@ -178,6 +180,7 @@ def place_row(place_table, temp_db_cursor): return _insert + @pytest.fixture def placex_table(temp_db_with_extensions, temp_db_conn): """ Create an empty version of the place table.