mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-29 08:36:24 +03:00
30 lines
890 B
Python
30 lines
890 B
Python
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
# This file is part of Nominatim. (https://nominatim.org)
|
|
#
|
|
# Copyright (C) 2024 by the Nominatim developer community.
|
|
# For a full list of authors see the git log.
|
|
"""
|
|
Tests for tools.exec_utils module.
|
|
"""
|
|
from pathlib import Path
|
|
import subprocess
|
|
|
|
import pytest
|
|
|
|
from nominatim_core.config import Configuration
|
|
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)
|