Sarah Hoffmann
fed64cda5a
Merge pull request #3957 from jayaddison/issue-2714/linked-places-default-language
...
Indexing: add default-language placename from linked places
2026-02-11 15:08:18 +01:00
Sarah Hoffmann
79bbdfd55c
Merge pull request #3975 from kad-link/fix/utf8-encoding-clean
...
Fix: Enforce explicit UTF-8 encoding in file I/O
2026-02-10 09:32:06 +01:00
Sri CHaRan
f84b279540
fix: add utf-8 encoding in read-write files
2026-02-10 00:38:40 +05:30
James Addison
6fee784c9f
Indexing: add default-language placename from linked places
2026-02-05 15:19:48 +00:00
James Addison
5cdc6724de
Tests: set boundary admin level to enable linking
2026-01-31 22:00:23 +00:00
Itz-Agasta
e77a4c2f35
Switch to ast.literal_eval for dict parsing
...
Due to some test data in the BDD feature files includes Python raw strings and escape sequences that standard json.loads() cannot parse switching to safer Python literal evaluation
for converting string representations of dictionaries.
2026-01-24 15:32:47 +05:30
Itz-Agasta
9fa980bca2
Replaces eval with json.loads for safer dict parsing
...
Switches from eval to json.loads when parsing string representations
of dictionaries to prevent arbitrary code
execution.
2026-01-24 15:32:47 +05:30
Sarah Hoffmann
fe773c12b2
Merge pull request #3946 from lonvia/enable-entrances-for-reverse
...
Enable entrance lookup for reverse and lookup
2026-01-23 22:10:43 +01:00
Sarah Hoffmann
6a6a064ef7
enable entrances for reverse and lookup
2026-01-23 17:38:47 +01:00
Sarah Hoffmann
35b42ad9ce
update Starlette tests to using their TestClient
2026-01-23 16:28:13 +01:00
Sarah Hoffmann
f30fcdcd9d
BDD: make sure randomly generated names always contain a letter
2026-01-07 09:58:40 +01:00
Sarah Hoffmann
3bcd1aa721
adapt BDD tests for new postcode table structure
2025-12-30 15:21:20 +01:00
Sarah Hoffmann
340fe64e8b
put postcodes in extra table on import
2025-12-30 15:20:46 +01:00
Sarah Hoffmann
35060164ab
reverse: only return housenumbers near street
2025-12-07 11:00:23 +01:00
Sarah Hoffmann
a51c771107
disable improved BDD test naming for pytest < 8
...
Needs the improved test collector introduced in pytest 8.0.
2025-10-30 20:50:00 +01:00
Sarah Hoffmann
55547723bf
add custom pytest collector for BDD feature files
2025-10-30 17:56:23 +01:00
Sarah Hoffmann
5d4c29b84b
force inclusion of extratags used directly by Nominatim
2025-10-28 17:20:17 +01:00
Sarah Hoffmann
f1fbc04f33
harmonize use of callback with set_entrance_filter
...
All other functions except a simple function, so do this here as well.
2025-10-28 14:33:45 +01:00
Sarah Hoffmann
2dda9079f0
add BDD tests for importing into the new place_entrance table
2025-10-24 10:52:25 +02:00
Sarah Hoffmann
589825d37e
adapt tests for extra place_entrance table
2025-10-23 17:25:20 +02:00
Sarah Hoffmann
5a8aa6cce4
adapt tests to new penalties
2025-09-12 17:45:22 +02:00
Sarah Hoffmann
1d1d80e1e3
adapt BDD tests for new address ranks
2025-09-11 11:56:39 +02:00
Emily Love Watson
91e345f77f
Store entrance fields as columns on table
2025-08-29 10:26:29 -05:00
Emily Love Watson
d0ad65f696
Select all entrances for results in one query
2025-08-29 10:26:29 -05:00
Emily Love Watson
e916d27b7c
Update entrances when entrance nodes are updated
2025-08-29 10:26:29 -05:00
Emily Love Watson
823ad5d279
Update entrances schema
2025-08-29 10:26:29 -05:00
Sarah Hoffmann
a7709c768d
add test for reverse with address layer and inherited address
2025-07-31 22:25:55 +02:00
Sarah Hoffmann
242fcc6e4d
adapt BDD tests to different rounding of reduce precision
2025-07-29 22:35:55 +02:00
Sarah Hoffmann
26903aec0b
add BDD test for empty queries
2025-07-11 14:16:48 +02:00
Sarah Hoffmann
e327512667
adapt BDD test to refusal to search POI names with hnr only
2025-07-07 16:14:58 +02:00
Sarah Hoffmann
3999977941
revert accidental change in json output format
2025-04-18 12:05:25 +02:00
Sarah Hoffmann
97d9e3c548
allow updating postcodes without a project directory
...
Postcodes will then be updated without looking for external postcodes.
2025-04-09 20:04:01 +02:00
Sarah Hoffmann
d95e9737da
remove usage of behave
2025-04-09 14:57:39 +02:00
Sarah Hoffmann
b34991d85f
add BDD tests for DB
2025-04-09 14:52:34 +02:00
Sarah Hoffmann
5f44aa2873
improve table comparison
2025-04-04 11:02:51 +02:00
Sarah Hoffmann
dae643c040
move database setup to generic conftest.py
2025-04-04 11:02:51 +02:00
Sarah Hoffmann
ee62d5e1cf
remove old behave osm2pgsql BDD tests
2025-04-04 11:02:51 +02:00
Sarah Hoffmann
fb440f29a2
implement BDD osm2pgsql tests with pytest-bdd
2025-04-04 11:02:51 +02:00
Sarah Hoffmann
6959577aa4
replace behave BDD API tests with pytest-bdd tests
2025-04-04 11:02:51 +02:00
Ashar
9ff93bdb3d
Update linked places name test
...
Clean up test scenario by removing extra language variations and
improving table readability.
2025-04-03 14:30:18 -04:00
Ashar
e0bf553aa5
test: linked places expand default language names
...
Add failing test for issue #2714 to verify default language expansion
2025-04-03 14:30:18 -04:00
Sarah Hoffmann
f5755a7a82
remove code for setting osm2pgsql via config.lib_dir
...
With the internal osm2pgsql gone, configuration of the binary location
via settings is the only option left that makes sense.
2025-03-11 09:04:05 +01:00
Sarah Hoffmann
12f5719184
remove unused bdd util functions
2025-03-09 17:34:40 +01:00
Sarah Hoffmann
78f839fbd3
enable flake for bdd test code
2025-03-09 17:34:04 +01:00
Sarah Hoffmann
c431e0e45d
Merge pull request #3666 from eumiro/math-isclose
...
Replace custom Almost with stdlib math.isclose
2025-03-06 17:53:01 +01:00
Sarah Hoffmann
c2d62a59cb
Merge pull request #3664 from eumiro/consolidate-random
...
Consolidate usage of random module
2025-03-06 17:52:19 +01:00
Miroslav Šedivý
cd64788a58
Replace custom Almost with stdlib math.isclose
2025-03-05 20:35:01 +01:00
Miroslav Šedivý
800a41721a
Consolidate usage of random module
2025-03-05 19:38:28 +01:00
Sarah Hoffmann
6712627d5e
adapt BDD tests to new postcode handling
2025-03-04 15:18:46 +01:00
Sarah Hoffmann
b2af358f66
reenable ZIP+ test
2025-03-04 08:57:59 +01:00