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
Sarah Hoffmann
e29823e28f
add test for structured query with leading spaces
2025-02-19 10:31:36 +01:00
Sarah Hoffmann
cad44eb00c
remove farms and isolated dwellings from computed addresses
...
Farms and isolated dwellings are usually confined to a very small
area. It does not make sense if they are automatically used in
addressing surrounding features. Still works to use them for
parenting when used with addr:place.
2024-12-20 22:59:02 +01:00
Sarah Hoffmann
2535780282
exclude more tourism=information types
2024-12-16 10:44:37 +01:00
Sarah Hoffmann
ad214753fc
include lock names mapped with "lock_name"
...
Fixes #3365 .
2024-12-16 10:26:55 +01:00
Sarah Hoffmann
0d500d4bd1
do not save names when falling back to addresses
...
If an object doesn't have a useable main tag, then the names should
always be ignored, independently of the presence of housenumbers.
We have to assume that the name belongs to a feature that was
intentionally filtered out.
2024-12-16 10:26:55 +01:00
Sarah Hoffmann
b1e5265d33
switch to subtags for tourism=information and natural=water
2024-12-16 10:26:55 +01:00