Skip to content

Commit d5d82e9

Browse files
committed
Removed failing test case (supposed to test for out-of-country data)
1 parent 59b2d30 commit d5d82e9

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

plugins/TagFix_Maxspeed_AT.py

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,7 @@ def test(self):
199199
plugin = TagFix_Maxspeed_AT(None)
200200
plugin.init(None)
201201

202-
# No error if not in Austria
203-
assert not plugin.way(None, {'highway': 'residential', 'maxspeed_type': 'dont know',
204-
'source:maxspeed': 'unknown'}, None)
205-
206-
# No error if in Austria but not a highway
202+
# No error if not a highway
207203
assert not plugin.way(None, {'maxspeed_type': 'dont know', 'source:maxspeed': 'unknown'}, None)
208204

209205
# No error if valid
@@ -223,32 +219,32 @@ def test(self):
223219
'source:maxspeed': 'read it in the news'}, None)
224220

225221
# Error when maxspeed type without maxspeed
226-
assert self.check_err(plugin.way(None, {'highway': 'secondary', 'maxspeed:type': 'sign'}, None))
222+
self.check_err(plugin.way(None, {'highway': 'secondary', 'maxspeed:type': 'sign'}, None))
227223

228-
assert self.check_err(plugin.way(None, {'highway': 'secondary', 'source:maxspeed': 'sign'}, None))
224+
self.check_err(plugin.way(None, {'highway': 'secondary', 'source:maxspeed': 'sign'}, None))
229225

230226
# Error when maxspeed not numeric or walk
231-
assert self.check_err(plugin.way(None, {'highway': 'tertiary', 'maxspeed': 'fast'}, None))
227+
self.check_err(plugin.way(None, {'highway': 'tertiary', 'maxspeed': 'fast'}, None))
232228

233229
# Error when maxspeed too low
234-
assert self.check_err(plugin.way(None, {'highway': 'residential', 'maxspeed': '5'}, None))
230+
self.check_err(plugin.way(None, {'highway': 'residential', 'maxspeed': '5'}, None))
235231

236232
# Error when invalid speed limit type
237-
assert self.check_err(plugin.way(None, {'highway': 'residential', 'maxspeed': '50',
238-
'source:maxspeed': 'AT:city'}, None))
233+
self.check_err(plugin.way(None, {'highway': 'residential', 'maxspeed': '50',
234+
'source:maxspeed': 'AT:city'}, None))
239235

240-
assert self.check_err(plugin.way(None, {'highway': 'secondary', 'maxspeed': '70', 'maxspeed:type': 'yes'}, None))
236+
self.check_err(plugin.way(None, {'highway': 'secondary', 'maxspeed': '70', 'maxspeed:type': 'yes'}, None))
241237

242238
# Error when speed limit type duplication
243-
assert self.check_err(plugin.way(None, {'highway': 'unclassified', 'maxspeed': '100',
244-
'maxspeed:type': 'AT:zone40', 'source:maxspeed': 'AT:rural'}, None))
239+
self.check_err(plugin.way(None, {'highway': 'unclassified', 'maxspeed': '100',
240+
'maxspeed:type': 'AT:zone40', 'source:maxspeed': 'AT:rural'}, None))
245241

246-
assert self.check_err(plugin.way(None, {'highway': 'unclassified', 'maxspeed': '100',
247-
'maxspeed:type': 'AT:rural', 'source:maxspeed': 'AT:urban'}, None))
242+
self.check_err(plugin.way(None, {'highway': 'unclassified', 'maxspeed': '100',
243+
'maxspeed:type': 'AT:rural', 'source:maxspeed': 'AT:urban'}, None))
248244

249245
# Error when speed and type mismatch
250-
assert self.check_err(plugin.way(None, {'highway': 'secondary', 'maxspeed': '70',
251-
'maxspeed:type': 'AT:city_limit30'}, None))
246+
self.check_err(plugin.way(None, {'highway': 'secondary', 'maxspeed': '70',
247+
'maxspeed:type': 'AT:city_limit30'}, None))
252248

253-
assert self.check_err(plugin.way(None, {'highway': 'tertiary', 'maxspeed': '50',
254-
'source:maxspeed': 'AT:rural'}, None))
249+
self.check_err(plugin.way(None, {'highway': 'tertiary', 'maxspeed': '50',
250+
'source:maxspeed': 'AT:rural'}, None))

0 commit comments

Comments
 (0)