]> git.openstreetmap.org Git - nominatim.git/commitdiff
slightly relax API tests
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 3 Feb 2015 22:17:51 +0000 (23:17 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 3 Feb 2015 22:17:51 +0000 (23:17 +0100)
tests/features/api/search.feature
tests/features/api/search_params.feature

index a98468010ba30e0147d2ea63fa3eb0c1dc4cc240..ac378b0e0d6c137a71b13ea54bd0eb417504e9b4 100644 (file)
@@ -18,15 +18,15 @@ Feature: Search queries
           | accept-language
           | en
         When sending json search query "4 Pomocnia, Pokrzywnica, Poland" with address
-        Then address of result 0 is
+        Then address of result 0 contains
           | type         | value
           | house_number | 4
-          | city         | Pomocnia
           | county       | gmina Pokrzywnica
           | state        | Masovian Voivodeship
           | postcode     | 06-121
           | country      | Poland
           | country_code | pl
+        Then address of result 0 does not contain road
 
     Scenario: House number interpolation even
         Given the request parameters
@@ -56,10 +56,12 @@ Feature: Search queries
           | country      | Canada
           | country_code | ca
 
+    @Tiger
     Scenario: TIGER house number
         When sending json search query "3 West Victory Way, Craig"
         Then result 0 has not attributes osm_id,osm_type
 
+    @Tiger
     Scenario: TIGER house number (road fallback)
         When sending json search query "3030 West Victory Way, Craig"
         Then result 0 has attributes osm_id,osm_type
index 8a49c20d0a24a58b312244543ca21426b8ec178a..23a6bf5938eb46690efdbd5de2ab2dd73f56d828 100644 (file)
@@ -27,11 +27,10 @@ Feature: Search queries
 
     Scenario: XML search with addressdetails
         When sending xml search query "Inuvik" with address
-        Then address of result 0 is
+        Then address of result 0 contains
           | type         | value
           | city         | Inuvik
           | state        | Northwest Territories
-          | postcode     | X0E 0T0
           | country      | Canada
           | country_code | ca