]> git.openstreetmap.org Git - nominatim.git/blob - test/python/tools/test_exec_utils.py
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / test / python / tools / test_exec_utils.py
1 # SPDX-License-Identifier: GPL-3.0-or-later
2 #
3 # This file is part of Nominatim. (https://nominatim.org)
4 #
5 # Copyright (C) 2025 by the Nominatim developer community.
6 # For a full list of authors see the git log.
7 """
8 Tests for tools.exec_utils module.
9 """
10 import nominatim_db.tools.exec_utils as exec_utils
11
12
13 def test_run_osm2pgsql(osm2pgsql_options):
14     osm2pgsql_options['append'] = False
15     osm2pgsql_options['import_file'] = 'foo.bar'
16     osm2pgsql_options['tablespaces']['slim_data'] = 'extra'
17     exec_utils.run_osm2pgsql(osm2pgsql_options)
18
19
20 def test_run_osm2pgsql_disable_jit(osm2pgsql_options):
21     osm2pgsql_options['append'] = True
22     osm2pgsql_options['import_file'] = 'foo.bar'
23     osm2pgsql_options['disable_jit'] = True
24     exec_utils.run_osm2pgsql(osm2pgsql_options)