2 Feature: Update of postcode only objects
3 Tests that changes to objects containing only a postcode are
7 Scenario: Adding a postcode-only node
11 Then place contains exactly
14 When updating osm data
18 Then place contains exactly
20 | N34:place | postcode |
22 Then placex contains exactly
26 Scenario: Deleting a postcode-only node
31 Then place contains exactly
33 | N34:place | postcode |
35 When updating osm data
39 Then place contains exactly
42 Then placex contains exactly
46 Scenario Outline: Converting a regular object into a postcode-only node
51 Then place contains exactly
53 | N34:<class> | <type> |
55 When updating osm data
59 Then place contains exactly
61 | N34:place | postcode |
63 Then placex contains exactly
68 | amenity | restaurant |
72 Scenario Outline: Converting a postcode-only node into a regular object
77 Then place contains exactly
79 | N34:place | postcode |
81 When updating osm data
85 Then place contains exactly
87 | N34:<class> | <type> |
89 Then placex contains exactly
91 | N34:<class> | <type> |
95 | amenity | restaurant |
99 Scenario: Converting na interpolation into a postcode-only node
102 When loading osm data
104 n1 Taddr:housenumber=3
105 n2 Taddr:housenumber=17
106 w34 Taddr:interpolation=odd Nn1,n2
108 Then place contains exactly
112 | W34:place | houses |
114 When updating osm data
116 w34 Tpostcode=4456 Nn1,n2
118 Then place contains exactly
122 | W34:place | postcode |
124 Then location_property_osmline contains exactly
126 And placex contains exactly
132 Scenario: Converting a postcode-only node into an interpolation
135 When loading osm data
137 n1 Taddr:housenumber=3
138 n2 Taddr:housenumber=17
139 w33 Thighway=residential Nn1,n2
140 w34 Tpostcode=4456 Nn1,n2
142 Then place contains exactly
146 | W33:highway | residential |
147 | W34:place | postcode |
149 When updating osm data
151 w34 Taddr:interpolation=odd Nn1,n2
153 Then place contains exactly
157 | W33:highway | residential |
158 | W34:place | houses |
160 Then location_property_osmline contains exactly
163 And placex contains exactly
167 | W33:highway | residential |