-
-@pytest.mark.parametrize('ptype,ttype', [('NONE', 'W'),
- ('AMENITY', 'Q'),
- ('STREET', 'w'),
- ('CITY', 'W'),
- ('COUNTRY', 'C'),
- ('POSTCODE', 'P')])
+@pytest.fixture
+def qnode():
+ return query.QueryNode(query.BREAK_PHRASE, query.PHRASE_ANY, 0.0 ,'', '')
+
+@pytest.mark.parametrize('ptype,ttype', [(query.PHRASE_ANY, 'W'),
+ (query.PHRASE_AMENITY, 'Q'),
+ (query.PHRASE_STREET, 'w'),
+ (query.PHRASE_CITY, 'W'),
+ (query.PHRASE_COUNTRY, 'C'),
+ (query.PHRASE_POSTCODE, 'P')])