match_types for Google metadata

This commit is contained in:
Juan Ignacio Sánchez Lara
2018-07-16 11:34:33 +02:00
parent 6e78da55b2
commit f2197d4b2a
2 changed files with 20 additions and 3 deletions

View File

@@ -71,9 +71,9 @@ class TestStreetFunctionsSetUp(TestCase):
GOOGLE_METADATAS = {
'Plaza España, Barcelona':
{'relevance': 0.9, 'precision': 'precise'},
{'relevance': 0.9, 'precision': 'precise', 'match_types': ['point_of_interest']},
'Santiago Rusiñol 123, Valladolid':
{'relevance': 0.56, 'precision': 'interpolated'}
{'relevance': 0.56, 'precision': 'interpolated', 'match_types': ['locality']}
}
HERE_METADATAS = {
@@ -408,3 +408,5 @@ class TestBulkStreetFunctions(TestStreetFunctionsSetUp):
'{} not close to {}'.format(relevance, expected_relevance))
assert_equal(metadata['precision'], expected['precision'])
assert_equal(metadata['match_types'], expected['match_types'])