File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2929 'IPAddressesEnabled' : True ,
3030 'impressionsMode' : 'OPTIMIZED' ,
3131 'impressionListener' : None ,
32- 'redisLocalCacheEnabled' : False ,
32+ 'redisLocalCacheEnabled' : True ,
3333 'redisLocalCacheTTL' : 5 ,
3434 'redisHost' : 'localhost' ,
3535 'redisPort' : 6379 ,
Original file line number Diff line number Diff line change 11"""Configuration unit tests."""
2- #pylint: disable=protected-access,no-self-use,line-too-long
2+ # pylint: disable=protected-access,no-self-use,line-too-long
33
44from splitio .client import config
55from splitio .engine .impressions import ImpressionsMode
@@ -44,3 +44,10 @@ def test_sanitize_imp_mode(self):
4444 mode , rate = config ._sanitize_impressions_mode ('DEBUG' )
4545 assert mode == ImpressionsMode .DEBUG
4646 assert rate == 60
47+
48+ def test_sanitize (self ):
49+ """Test sanitization."""
50+ configs = {}
51+ processed = config .sanitize ('some' , configs )
52+
53+ assert processed ['redisLocalCacheEnabled' ] # check default is True
You can’t perform that action at this time.
0 commit comments