1 Feature: Update of postcode only objects
2 Tests that changes to objects containing only a postcode are
6 Scenario: Adding a postcode-only node
11 Then place contains exactly
14 When updating osm data
18 Then place contains exactly
19 | object | class | type |
20 | N34 | place | postcode |
22 Then placex contains exactly
26 Scenario: Deleting a postcode-only node
31 Then place contains exactly
32 | object | class | type |
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
52 | object | class | type |
53 | N34 | <class> | <type> |
55 When updating osm data
59 Then place contains exactly
60 | object | class | type |
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
78 | object | class | type |
79 | N34 | place | postcode |
81 When updating osm data
85 Then place contains exactly
86 | object | class | type |
87 | N34 | <class> | <type> |
89 Then placex contains exactly
90 | object | class | type |
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
109 | object | class | type |
110 | N1 | place | house |
111 | N2 | place | house |
112 | W34 | place | houses |
114 When updating osm data
116 w34 Tpostcode=4456 Nn1,n2
118 Then place contains exactly
119 | object | class | type |
120 | N1 | place | house |
121 | N2 | place | house |
122 | W34 | place | postcode |
124 Then location_property_osmline contains exactly
126 And placex contains exactly
127 | object | class | type |
128 | N1 | place | house |
129 | N2 | place | house |
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
143 | object | class | type |
144 | N1 | place | house |
145 | N2 | place | house |
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
154 | object | class | type |
155 | N1 | place | house |
156 | N2 | place | house |
157 | W33 | highway | residential |
158 | W34 | place | houses |
160 Then location_property_osmline contains exactly
161 | osm_id | startnumber | endnumber |
163 And placex contains exactly
164 | object | class | type |
165 | N1 | place | house |
166 | N2 | place | house |
167 | W33 | highway | residential |