disable configurations which generate errors, first we need 100% coverage
[osm-ro-tools.git] / test / conftest.py
blob20950854e8b7132cd544acc218d8480978600e79
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 '''
4 Created on 27.10.2012
6 @author: eddy
7 '''
9 import pytest
10 import sys
11 sys.path.append('.')
13 emptymap = []
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'}}}]
20 rentagwaymap = {
21 u'way': [
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'}}}]
32 rstrtagwaymap = {
33 u'way': [
34 {u'id': 1, u'tag': {u'name':u'Strada Prunului'}}
39 oneerefinrefmap = [
40 {u'type': u'way',
41 u'data': {u'id': 1, u'tag': {u'ref':u'e 80'}}
44 oneerefinrefch = [
45 {u'type': u'way',
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'}
52 duperefinrefmap = [
53 {u'type': u'way',
54 u'data': {u'id': 2, u'tag': {u'ref': u'e 80', u'int_ref':u'E80'}}
57 duperefinrefch = [
58 {u'type': u'way',
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")
69 #def apiprovider():
70 # from OsmUtils import OsmApiExt()
72 #@pytest.fixture(params=simplemaps)
73 #def pytest_funcarg__mapprovider(pos):
74 # return simplemaps[pos]