diff --git a/server/extension/sql/20_geocode_street.sql b/server/extension/sql/20_geocode_street.sql index eb8e965..e3bc55c 100644 --- a/server/extension/sql/20_geocode_street.sql +++ b/server/extension/sql/20_geocode_street.sql @@ -145,6 +145,7 @@ RETURNS Geometry AS $$ from cartodb_services.tools import Logger from cartodb_services.refactor.storage.server_config import InDbServerConfigStorage, UserConfigStorageFactory, OrgConfigStorageFactory from cartodb_services.refactor.tools.logger import LoggerConfigBuilder + from cartodb_services.refactor.tools.redis_mock import RedisConnectionMock from cartodb_services.refactor.storage.redis_config import RedisMetadataConnectionConfigBuilder, RedisMetricsConnectionConfigBuilder from cartodb_services.refactor.storage.redis_connection import RedisConnectionBuilder from cartodb_services.refactor.service.mapzen_geocoder import MapzenGeocoderConfigBuilder diff --git a/server/lib/python/cartodb_services/cartodb_services/refactor/tools/redis_mock.py b/server/lib/python/cartodb_services/cartodb_services/refactor/tools/redis_mock.py new file mode 100644 index 0000000..016e0fb --- /dev/null +++ b/server/lib/python/cartodb_services/cartodb_services/refactor/tools/redis_mock.py @@ -0,0 +1,8 @@ +class RedisConnectionMock(object): + """ Simple class to mock a dummy behaviour for Redis related functions """ + + def zscore(self, redis_prefix, day): + pass + + def zincrby(self, redis_prefix, day, amount): + pass \ No newline at end of file