-def conn(temp_db_conn, table_factory, monkeypatch):
- monkeypatch.setenv('NOMINATIM_DATABASE_MODULE_PATH', '.')
- table_factory('country_name', 'partition INT', (0, 1, 2))
+def sql_tmp_path(tmp_path, def_config):
+ def_config.lib_dir.sql = tmp_path
+ return tmp_path
+
+@pytest.fixture
+def conn(sql_preprocessor, temp_db_conn):