Relevance metadata for Google

This commit is contained in:
Juan Ignacio Sánchez Lara
2018-07-11 11:43:54 +02:00
parent 0b2ee85c11
commit d46d51c3bb
3 changed files with 56 additions and 28 deletions

View File

@@ -83,8 +83,13 @@ class TestStreetFunctionsSetUp(TestCase):
'Plaza España, Barcelona': 0.85
})
GOOGLE_RELEVANCES = HERE_RELEVANCES.copy()
GOOGLE_RELEVANCES.update({
'Plaza España, Barcelona': 0.9
})
RELEVANCES = {
'google': HERE_RELEVANCES,
'google': GOOGLE_RELEVANCES,
'here': HERE_RELEVANCES,
'tomtom': TOMTOM_RELEVANCES,
'mapbox': MAPBOX_RELEVANCES
@@ -331,7 +336,7 @@ class TestBulkStreetFunctions(TestStreetFunctionsSetUp):
self.fixture_points['Plaza España, Barcelona'])
def _test_known_table(self):
subquery = 'select * from known_table where cartodb_id < 1100'
subquery = 'select * from unknown_table where cartodb_id < 1100'
subquery_count = 'select count(1) from ({}) _x'.format(subquery)
count = self._run_authenticated(subquery_count)['rows'][0]['count']