mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 00:49:55 +03:00
Merge pull request #2696 from mtmail/norminatyn-typos
fix typos of name Nominatim
This commit is contained in:
commit
720c7b7519
@ -93,7 +93,7 @@ for a custom tokenizer implementation.
|
||||
|
||||
Nominatim expects two files for a tokenizer:
|
||||
|
||||
* `nominiatim/tokenizer/<NAME>_tokenizer.py` containing the Python part of the
|
||||
* `nominatim/tokenizer/<NAME>_tokenizer.py` containing the Python part of the
|
||||
implementation
|
||||
* `lib-php/tokenizer/<NAME>_tokenizer.php` with the PHP part of the
|
||||
implementation
|
||||
|
@ -17,7 +17,7 @@ class Postcode
|
||||
{
|
||||
/// Database word id, if available.
|
||||
private $iId;
|
||||
/// Full nomralized postcode (upper cased).
|
||||
/// Full normalized postcode (upper cased).
|
||||
private $sPostcode;
|
||||
// Optional country code the postcode belongs to (currently unused).
|
||||
private $sCountryCode;
|
||||
|
@ -42,7 +42,7 @@ def run_legacy_script(script, *args, nominatim_env=None, throw_on_fail=False):
|
||||
|
||||
def run_api_script(endpoint, project_dir, extra_env=None, phpcgi_bin=None,
|
||||
params=None):
|
||||
""" Execute a Nominiatim API function.
|
||||
""" Execute a Nominatim API function.
|
||||
|
||||
The function needs a project directory that contains the website
|
||||
directory with the scripts to be executed. The scripts will be run
|
||||
|
@ -29,7 +29,7 @@ def word_table(temp_db_conn):
|
||||
def test_config(project_env, tmp_path):
|
||||
module_dir = tmp_path / 'module_src'
|
||||
module_dir.mkdir()
|
||||
(module_dir / 'nominatim.so').write_text('TEST nomiantim.so')
|
||||
(module_dir / 'nominatim.so').write_text('TEST nominatim.so')
|
||||
|
||||
project_env.lib_dir.module = module_dir
|
||||
|
||||
@ -121,7 +121,7 @@ def test_init_new(tokenizer_factory, test_config, monkeypatch,
|
||||
outfile = test_config.project_dir / 'module' / 'nominatim.so'
|
||||
|
||||
assert outfile.exists()
|
||||
assert outfile.read_text() == 'TEST nomiantim.so'
|
||||
assert outfile.read_text() == 'TEST nominatim.so'
|
||||
assert outfile.stat().st_mode == 33261
|
||||
|
||||
|
||||
@ -206,7 +206,7 @@ def test_migrate_database(tokenizer_factory, test_config, temp_db_conn, monkeypa
|
||||
outfile = test_config.project_dir / 'module' / 'nominatim.so'
|
||||
|
||||
assert outfile.exists()
|
||||
assert outfile.read_text() == 'TEST nomiantim.so'
|
||||
assert outfile.read_text() == 'TEST nominatim.so'
|
||||
assert outfile.stat().st_mode == 33261
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user