Merge pull request #2696 from mtmail/norminatyn-typos

fix typos of name Nominatim
This commit is contained in:
Sarah Hoffmann
2022-05-05 10:04:55 +02:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ for a custom tokenizer implementation.
Nominatim expects two files for a tokenizer: 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 implementation
* `lib-php/tokenizer/<NAME>_tokenizer.php` with the PHP part of the * `lib-php/tokenizer/<NAME>_tokenizer.php` with the PHP part of the
implementation implementation

View File

@@ -17,7 +17,7 @@ class Postcode
{ {
/// Database word id, if available. /// Database word id, if available.
private $iId; private $iId;
/// Full nomralized postcode (upper cased). /// Full normalized postcode (upper cased).
private $sPostcode; private $sPostcode;
// Optional country code the postcode belongs to (currently unused). // Optional country code the postcode belongs to (currently unused).
private $sCountryCode; private $sCountryCode;

View File

@@ -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, def run_api_script(endpoint, project_dir, extra_env=None, phpcgi_bin=None,
params=None): params=None):
""" Execute a Nominiatim API function. """ Execute a Nominatim API function.
The function needs a project directory that contains the website The function needs a project directory that contains the website
directory with the scripts to be executed. The scripts will be run directory with the scripts to be executed. The scripts will be run

View File

@@ -29,7 +29,7 @@ def word_table(temp_db_conn):
def test_config(project_env, tmp_path): def test_config(project_env, tmp_path):
module_dir = tmp_path / 'module_src' module_dir = tmp_path / 'module_src'
module_dir.mkdir() 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 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' outfile = test_config.project_dir / 'module' / 'nominatim.so'
assert outfile.exists() assert outfile.exists()
assert outfile.read_text() == 'TEST nomiantim.so' assert outfile.read_text() == 'TEST nominatim.so'
assert outfile.stat().st_mode == 33261 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' outfile = test_config.project_dir / 'module' / 'nominatim.so'
assert outfile.exists() assert outfile.exists()
assert outfile.read_text() == 'TEST nomiantim.so' assert outfile.read_text() == 'TEST nominatim.so'
assert outfile.stat().st_mode == 33261 assert outfile.stat().st_mode == 33261