]> git.openstreetmap.org Git - nominatim.git/commitdiff
fixup tests
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 19 Aug 2017 17:36:34 +0000 (19:36 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 19 Aug 2017 17:37:06 +0000 (19:37 +0200)
test/bdd/api/search/params.feature
test/bdd/db/import/placex.feature
test/bdd/db/query/search_simple.feature

index d21f317e3a8c1a8d6f2c3bb44f7c19756d72726a..bfc7cb152d5edf015920b3164c376ef872393589 100644 (file)
@@ -25,7 +25,6 @@ Feature: Search queries
           | type         | value |
           | city         | Montevideo |
           | state        | Montevideo |
-          | postcode     | 11000 |
           | country      | Uruguay |
           | country_code | uy |
 
index f124e482b1b3a83d7b60652431b49db08735ec05..f3695642453727b5805f15c5242b4a0bb050af06 100644 (file)
@@ -79,13 +79,11 @@ Feature: Import into placex
          | osm  | class | type     | postcode | geometry |
          | N1   | place | postcode | EA452CD  | country:gb |
          | N2   | place | postcode | E45 23   | country:gb |
-         | N3   | place | postcode | y45      | country:gb |
         When importing
         Then placex contains
          | object | country_code | rank_search | rank_address |
          | N1     | gb           | 30          | 30 |
          | N2     | gb           | 30          | 30 |
-         | N3     | gb           | 30          | 30 |
 
     Scenario: search and address rank for DE postcodes correctly assigned
         Given the places
index 417df769857d9f947e8e713ecee1a2a363a93518..409ed44ff8b280c14073c3baa86828d837e28d05 100644 (file)
@@ -25,7 +25,9 @@ Feature: Searching of simple objects
           | osm | class    | type        | postcode | geometry |
           | R1  | boundary | postal_code | 54321    | poly-area:1.0 |
         And searching for "12345"
-        Then exactly 0 results are returned
+        Then results contain
+         | osm_type |
+         | P        |
         When searching for "54321"
         Then results contain
          | ID | osm_type | osm_id |