forked from hans/Nominatim
25 lines
784 B
Python
25 lines
784 B
Python
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
# This file is part of Nominatim. (https://nominatim.org)
|
|
#
|
|
# Copyright (C) 2025 by the Nominatim developer community.
|
|
# For a full list of authors see the git log.
|
|
"""
|
|
Tests for tools.exec_utils module.
|
|
"""
|
|
import nominatim_db.tools.exec_utils as exec_utils
|
|
|
|
|
|
def test_run_osm2pgsql(osm2pgsql_options):
|
|
osm2pgsql_options['append'] = False
|
|
osm2pgsql_options['import_file'] = 'foo.bar'
|
|
osm2pgsql_options['tablespaces']['slim_data'] = 'extra'
|
|
exec_utils.run_osm2pgsql(osm2pgsql_options)
|
|
|
|
|
|
def test_run_osm2pgsql_disable_jit(osm2pgsql_options):
|
|
osm2pgsql_options['append'] = True
|
|
osm2pgsql_options['import_file'] = 'foo.bar'
|
|
osm2pgsql_options['disable_jit'] = True
|
|
exec_utils.run_osm2pgsql(osm2pgsql_options)
|