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
commit 720c7b7519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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:
* `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

View File

@ -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;

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,
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

View File

@ -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