2 # -*- coding: utf-8 -*-
14 notagswaymap
= [{u
'type': u
'way', u
'data': {u
'id': 1, u
'tag': {}}}]
15 notagsnodemap
= [{u
'type': u
'node', u
'data': {u
'id': 1, u
'tag': {}}}]
17 simplemaps
= [emptymap
, notagsnodemap
, notagswaymap
]
19 nametagwaymap
= [{u
'type': u
'way', u
'data': {u
'id': 1, u
'tag': {u
'name':u
'Alea Prunului'}}}]
22 {u
'id': 1, u
'tag': {u
'name':u
'Aleea Prunului'}}
26 # TODO: check why unicodes don't work properly
27 #sametagwaymap = [{u'type': u'way', u'data': {u'id': 1, u'tag': {u'name': u'Fundătura Prunului'}}}]
28 sametagwaymap
= [{u
'type': u
'way', u
'data': {u
'id': 1, u
'tag': {u
'name': u
'Fundacul Prunului'}}}]
31 strtagwaymap
= [{u
'type': u
'way', u
'data': {u
'id': 1, u
'tag': {u
'name':u
'St. Prunului'}}}]
34 {u
'id': 1, u
'tag': {u
'name':u
'Strada Prunului'}}
41 u
'data': {u
'id': 1, u
'tag': {u
'ref':u
'e 80'}}
46 u
'data': {u
'id': 1, u
'tag': {u
'int_ref':u
'E80'}},
47 'oldrecs': {u
'ref': u
'e 80', u
'int_ref': u
''},
48 'newrecs': {u
'ref': u
'' , u
'int_ref': u
'E80'}
54 u
'data': {u
'id': 2, u
'tag': {u
'ref': u
'e 80', u
'int_ref':u
'E80'}}
59 u
'data': {u
'id': 2, u
'tag': {u
'int_ref':u
'E80'}},
60 'oldrecs': {u
'ref': u
'e 80', u
'int_ref': u
'E80'},
61 'newrecs': {u
'ref': u
'' , u
'int_ref': u
'E80'}
66 shiftpat
= [{'in':['One ', 1, u
' two ', 2], 'shift':0, 'out': u
'One \\1 two \\2'}]
68 #@pytest.fixture(scope="module")
70 # from OsmUtils import OsmApiExt()
72 #@pytest.fixture(params=simplemaps)
73 #def pytest_funcarg__mapprovider(pos):
74 # return simplemaps[pos]