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 And place_interpolation contains exactly
119 When updating osm data
121 w34 Tpostcode=4456 Nn1,n2
123 Then place contains exactly
124 | object | class | type |
125 | N1 | place | house |
126 | N2 | place | house |
127 And place_postcode contains exactly
128 | object | postcode |
130 And place_interpolation contains exactly
133 Then location_property_osmline contains exactly
137 Scenario: Converting a postcode-only node into an interpolation
140 When loading osm data
142 n1 Taddr:housenumber=3
143 n2 Taddr:housenumber=17
144 w33 Thighway=residential Nn1,n2
145 w34 Tpostcode=4456 Nn1,n2
147 Then place contains exactly
148 | object | class | type |
149 | N1 | place | house |
150 | N2 | place | house |
151 | W33 | highway | residential |
152 And place_postcode contains exactly
153 | object | postcode |
156 When updating osm data
158 w34 Taddr:interpolation=odd Nn1,n2
160 Then place contains exactly
161 | object | class | type |
162 | N1 | place | house |
163 | N2 | place | house |
164 | W33 | highway | residential |
165 And place_interpolation contains exactly
168 And place_postcode contains exactly
171 Then location_property_osmline contains exactly
172 | osm_id | startnumber | endnumber |
174 And placex contains exactly
175 | object | class | type |
176 | N1 | place | house |
177 | N2 | place | house |
178 | W33 | highway | residential |