mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
switch BDD tests to always use search API
This commit is contained in:
@@ -10,7 +10,9 @@ Feature: Updates of linked places
|
||||
| osm | class | type | name | admin | geometry |
|
||||
| R1 | boundary | administrative | foo | 8 | poly-area:0.1 |
|
||||
When importing
|
||||
And searching for "foo" with dups
|
||||
And sending search query "foo"
|
||||
| dups |
|
||||
| 1 |
|
||||
Then results contain
|
||||
| osm_type |
|
||||
| R |
|
||||
@@ -20,7 +22,9 @@ Feature: Updates of linked places
|
||||
Then placex contains
|
||||
| object | linked_place_id |
|
||||
| N1 | - |
|
||||
When searching for "foo" with dups
|
||||
When sending search query "foo"
|
||||
| dups |
|
||||
| 1 |
|
||||
Then results contain
|
||||
| osm_type |
|
||||
| N |
|
||||
@@ -33,7 +37,9 @@ Feature: Updates of linked places
|
||||
| osm | class | type | name | admin | geometry |
|
||||
| R1 | boundary | administrative | foo | 8 | poly-area:0.1 |
|
||||
When importing
|
||||
And searching for "foo" with dups
|
||||
And sending search query "foo"
|
||||
| dups |
|
||||
| 1 |
|
||||
Then results contain
|
||||
| osm_type |
|
||||
| R |
|
||||
@@ -41,7 +47,9 @@ Feature: Updates of linked places
|
||||
Then placex contains
|
||||
| object | linked_place_id |
|
||||
| N1 | - |
|
||||
When searching for "foo" with dups
|
||||
When sending search query "foo"
|
||||
| dups |
|
||||
| 1 |
|
||||
Then results contain
|
||||
| osm_type |
|
||||
| N |
|
||||
@@ -51,7 +59,9 @@ Feature: Updates of linked places
|
||||
| osm | class | type | name | geometry |
|
||||
| N1 | place | city | foo | 0 0 |
|
||||
When importing
|
||||
And searching for "foo" with dups
|
||||
And sending search query "foo"
|
||||
| dups |
|
||||
| 1 |
|
||||
Then results contain
|
||||
| osm_type |
|
||||
| N |
|
||||
@@ -61,7 +71,9 @@ Feature: Updates of linked places
|
||||
Then placex contains
|
||||
| object | linked_place_id |
|
||||
| N1 | R1 |
|
||||
When searching for "foo" with dups
|
||||
When sending search query "foo"
|
||||
| dups |
|
||||
| 1 |
|
||||
Then results contain
|
||||
| osm_type |
|
||||
| R |
|
||||
@@ -74,7 +86,9 @@ Feature: Updates of linked places
|
||||
| osm | class | type | name | admin | geometry |
|
||||
| R1 | boundary | administrative | foobar | 8 | poly-area:0.1 |
|
||||
When importing
|
||||
And searching for "foo" with dups
|
||||
And sending search query "foo"
|
||||
| dups |
|
||||
| 1 |
|
||||
Then results contain
|
||||
| osm_type |
|
||||
| N |
|
||||
@@ -84,7 +98,9 @@ Feature: Updates of linked places
|
||||
Then placex contains
|
||||
| object | linked_place_id |
|
||||
| N1 | R1 |
|
||||
When searching for "foo" with dups
|
||||
When sending search query "foo"
|
||||
| dups |
|
||||
| 1 |
|
||||
Then results contain
|
||||
| osm_type |
|
||||
| R |
|
||||
|
||||
@@ -7,10 +7,10 @@ Feature: Update of names in place objects
|
||||
| osm | class | type | postcode | geometry |
|
||||
| R1 | boundary | postal_code | 12345 | poly-area:0.5 |
|
||||
When importing
|
||||
And searching for "12345"
|
||||
And sending search query "12345"
|
||||
Then results contain
|
||||
| ID | osm_type | osm_id |
|
||||
| 0 | R | 1 |
|
||||
| ID | osm |
|
||||
| 0 | R1 |
|
||||
When updating places
|
||||
| osm | class | type | geometry |
|
||||
| R1 | boundary | postal_code | poly-area:0.5 |
|
||||
|
||||
Reference in New Issue
Block a user