bdd: move query tests from scene to grid description

This commit is contained in:
Sarah Hoffmann
2022-06-16 22:08:30 +02:00
parent 19f67e167c
commit 6c58a4c46c
3 changed files with 28 additions and 11 deletions

View File

@@ -13,9 +13,12 @@ Feature: Searching of simple objects
| 0 | N1 | place | village | 10 -10 |
Scenario: Updating postcode in postcode boundaries without ref
Given the grid
| 1 | 2 |
| 4 | 3 |
Given the places
| osm | class | type | postcode | geometry |
| R1 | boundary | postal_code | 12345 | poly-area:1.0 |
| R1 | boundary | postal_code | 12345 | (1,2,3,4,1) |
When importing
And sending search query "12345"
Then results contain
@@ -23,7 +26,7 @@ Feature: Searching of simple objects
| 0 | R1 |
When updating places
| osm | class | type | postcode | geometry |
| R1 | boundary | postal_code | 54321 | poly-area:1.0 |
| R1 | boundary | postal_code | 54321 | (1,2,3,4,1) |
And sending search query "12345"
Then exactly 0 results are returned
When sending search query "54321"