From: Sarah Hoffmann Date: Tue, 30 Jul 2024 15:42:09 +0000 (+0200) Subject: add forgotten BDD test X-Git-Tag: deploy~4^2~3^2~4 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/d47acbc18a5beeac8cf3d9e41abc52e16ddcde6d?ds=sidebyside add forgotten BDD test --- diff --git a/test/bdd/db/query/reverse.feature b/test/bdd/db/query/reverse.feature new file mode 100644 index 00000000..12941102 --- /dev/null +++ b/test/bdd/db/query/reverse.feature @@ -0,0 +1,23 @@ +@DB +Feature: Reverse searches + Test results of reverse queries + + @v1-api-python-only + Scenario: POI in POI area + Given the 0.0001 grid with origin 1,1 + | 1 | | | | | | | | 2 | + | | 9 | | | | | | | | + | 4 | | | | | | | | 3 | + And the places + | osm | class | type | geometry | + | W1 | aeroway | terminal | (1,2,3,4,1) | + | N1 | amenity | restaurant | 9 | + When importing + And sending v1/reverse at 1.0001,1.0001 + Then results contain + | osm | + | N1 | + When sending v1/reverse at 1.0003,1.0001 + Then results contain + | osm | + | W1 |