Add Redis Mock -- tested and working
This commit is contained in:
parent
e24819f193
commit
74d2fba763
@ -145,6 +145,7 @@ RETURNS Geometry AS $$
|
|||||||
from cartodb_services.tools import Logger
|
from cartodb_services.tools import Logger
|
||||||
from cartodb_services.refactor.storage.server_config import InDbServerConfigStorage, UserConfigStorageFactory, OrgConfigStorageFactory
|
from cartodb_services.refactor.storage.server_config import InDbServerConfigStorage, UserConfigStorageFactory, OrgConfigStorageFactory
|
||||||
from cartodb_services.refactor.tools.logger import LoggerConfigBuilder
|
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_config import RedisMetadataConnectionConfigBuilder, RedisMetricsConnectionConfigBuilder
|
||||||
from cartodb_services.refactor.storage.redis_connection import RedisConnectionBuilder
|
from cartodb_services.refactor.storage.redis_connection import RedisConnectionBuilder
|
||||||
from cartodb_services.refactor.service.mapzen_geocoder import MapzenGeocoderConfigBuilder
|
from cartodb_services.refactor.service.mapzen_geocoder import MapzenGeocoderConfigBuilder
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user