1 # SPDX-License-Identifier: GPL-3.0-or-later
3 # This file is part of Nominatim. (https://nominatim.org)
5 # Copyright (C) 2024 by the Nominatim developer community.
6 # For a full list of authors see the git log.
8 Tests for tools.exec_utils module.
10 from pathlib import Path
15 from nominatim_db.config import Configuration
16 import nominatim_db.tools.exec_utils as exec_utils
18 def test_run_osm2pgsql(osm2pgsql_options):
19 osm2pgsql_options['append'] = False
20 osm2pgsql_options['import_file'] = 'foo.bar'
21 osm2pgsql_options['tablespaces']['slim_data'] = 'extra'
22 exec_utils.run_osm2pgsql(osm2pgsql_options)
25 def test_run_osm2pgsql_disable_jit(osm2pgsql_options):
26 osm2pgsql_options['append'] = True
27 osm2pgsql_options['import_file'] = 'foo.bar'
28 osm2pgsql_options['disable_jit'] = True
29 exec_utils.run_osm2pgsql(osm2pgsql_options)