Added log and cost_per_hit config to the db config
This commit is contained in:
@@ -43,7 +43,9 @@ def build_plpy_mock(empty=False):
|
||||
|
||||
|
||||
def _plpy_execute_side_effect(*args, **kwargs):
|
||||
if args[0] == 'SELECT cartodb.CDB_Conf_GetConf(heremaps_conf) as conf':
|
||||
return [{'conf': '{"app_id": "app_id", "app_code": "code"}'}]
|
||||
elif args[0] == 'SELECT cartodb.CDB_Conf_GetConf(mapzen_conf) as conf':
|
||||
if args[0] == "SELECT cartodb.CDB_Conf_GetConf('heremaps_conf') as conf":
|
||||
return [{'conf': '{"app_id": "app_id", "app_code": "code", "geocoder_cost_per_hit": 1}'}]
|
||||
elif args[0] == "SELECT cartodb.CDB_Conf_GetConf('mapzen_conf') as conf":
|
||||
return [{'conf': '{"routing_app_key": "app_key"}'}]
|
||||
elif args[0] == "SELECT cartodb.CDB_Conf_GetConf('logger_conf') as conf":
|
||||
return [{'conf': '{"geocoder_log_path": "path"}'}]
|
||||
|
||||
Reference in New Issue
Block a user