]> git.openstreetmap.org Git - nominatim.git/blob - test/python/tools/conftest.py
add typing information to DB properties
[nominatim.git] / test / python / tools / conftest.py
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # This file is part of Nominatim. (https://nominatim.org)
4 #
5 # Copyright (C) 2022 by the Nominatim developer community.
6 # For a full list of authors see the git log.
7 import pytest
8
9 @pytest.fixture
10 def osm2pgsql_options(temp_db):
11     """ A standard set of options for osm2pgsql.
12     """
13     return dict(osm2pgsql='echo',
14                 osm2pgsql_cache=10,
15                 osm2pgsql_style='style.file',
16                 threads=1,
17                 dsn='dbname=' + temp_db,
18                 flatnode_file='',
19                 tablespaces=dict(slim_data='', slim_index='',
20                                  main_data='', main_index=''))