From 1e30b21d35c141c48a6ea6ec639273f220e24a77 Mon Sep 17 00:00:00 2001 From: Mario de Frutos Date: Mon, 18 Apr 2016 18:37:46 +0200 Subject: [PATCH] Fixed tests with the isolines changes --- server/lib/python/cartodb_services/test/test_helper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/lib/python/cartodb_services/test/test_helper.py b/server/lib/python/cartodb_services/test/test_helper.py index 9347d62..0fd2fd3 100644 --- a/server/lib/python/cartodb_services/test/test_helper.py +++ b/server/lib/python/cartodb_services/test/test_helper.py @@ -3,21 +3,23 @@ from mock import Mock def build_redis_user_config(redis_conn, username, quota=100, soft_limit=False, - service="heremaps", + service="heremaps", isolines_quota=0, end_date=datetime.today()): user_redis_name = "rails:users:{0}".format(username) redis_conn.hset(user_redis_name, 'soft_geocoding_limit', soft_limit) redis_conn.hset(user_redis_name, 'geocoding_quota', quota) + redis_conn.hset(user_redis_name, 'here_isolines_quota', isolines_quota) redis_conn.hset(user_redis_name, 'geocoder_type', service) redis_conn.hset(user_redis_name, 'period_end_date', end_date) redis_conn.hset(user_redis_name, 'google_maps_client_id', '') redis_conn.hset(user_redis_name, 'google_maps_api_key', '') -def build_redis_org_config(redis_conn, orgname, quota=100, +def build_redis_org_config(redis_conn, orgname, quota=100, isolines_quota=0, end_date=datetime.today()): org_redis_name = "rails:orgs:{0}".format(orgname) redis_conn.hset(org_redis_name, 'geocoding_quota', quota) + redis_conn.hset(org_redis_name, 'here_isolines_quota', isolines_quota) redis_conn.hset(org_redis_name, 'period_end_date', end_date) redis_conn.hset(org_redis_name, 'google_maps_client_id', '') redis_conn.hset(org_redis_name, 'google_maps_api_key', '')