1 Feature: Update of postcode only objects
2 Tests that changes to objects containing only a postcode are
5 Scenario: Adding a postcode-only node
10 Then place contains exactly
13 When updating osm data
17 Then place_postcode contains exactly
20 And place contains exactly
24 Scenario: Deleting a postcode-only node
29 Then place_postcode contains exactly
32 And place contains exactly
35 When updating osm data
39 Then place contains exactly
41 And place_postcode contains exactly
45 Scenario Outline: Converting a regular object into a postcode-only node
50 Then place contains exactly
51 | object | class | type |
52 | N34 | <class> | <type> |
54 When updating osm data
58 Then place contains exactly
60 And place_postcode contains exactly
64 Then placex contains exactly
69 | amenity | restaurant |
73 Scenario Outline: Converting a postcode-only node into a regular object
78 Then place_postcode contains exactly
82 When updating osm data
86 Then place contains exactly
87 | object | class | type |
88 | N34 | <class> | <type> |
89 And place_postcode contains exactly
92 Then placex contains exactly
93 | object | class | type |
94 | N34 | <class> | <type> |
98 | amenity | restaurant |
102 Scenario: Converting an interpolation into a postcode-only node
105 When loading osm data
107 n1 Taddr:housenumber=3
108 n2 Taddr:housenumber=17
109 w34 Taddr:interpolation=odd Nn1,n2
111 Then place contains exactly
112 | object | class | type |
113 | N1 | place | house |
114 | N2 | place | house |
115 | W34 | place | houses |
117 When updating osm data
119 w34 Tpostcode=4456 Nn1,n2
121 Then place contains exactly
122 | object | class | type |
123 | N1 | place | house |
124 | N2 | place | house |
125 Then place_postcode contains exactly
126 | object | postcode |
129 Then location_property_osmline contains exactly
133 Scenario: Converting a postcode-only node into an interpolation
136 When loading osm data
138 n1 Taddr:housenumber=3
139 n2 Taddr:housenumber=17
140 w33 Thighway=residential Nn1,n2
141 w34 Tpostcode=4456 Nn1,n2
143 Then place contains exactly
144 | object | class | type |
145 | N1 | place | house |
146 | N2 | place | house |
147 | W33 | highway | residential |
148 And place_postcode contains exactly
149 | object | postcode |
152 When updating osm data
154 w34 Taddr:interpolation=odd Nn1,n2
156 Then place contains exactly
157 | object | class | type |
158 | N1 | place | house |
159 | N2 | place | house |
160 | W33 | highway | residential |
161 | W34 | place | houses |
162 And place_postcode contains exactly
165 Then location_property_osmline contains exactly
166 | osm_id | startnumber | endnumber |
168 And placex contains exactly
169 | object | class | type |
170 | N1 | place | house |
171 | N2 | place | house |
172 | W33 | highway | residential |