Commit 12fabc20 authored by Sean Bleier's avatar Sean Bleier

Add regression tests.

parent 127a5eaa
......@@ -618,3 +618,26 @@ class ConfigurationTestCase(SetupMixin, TestCase):
def test_bad_parser_import(self):
with self.assertRaises(ImproperlyConfigured):
get_cache('default')
@override_settings(CACHES={
'default': {
'BACKEND': 'redis_cache.RedisCache',
'LOCATION': [
'redis://:yadayada@localhost:6381/15',
'redis://:yadayada@localhost:6382/15',
'redis://:yadayada@localhost:6383/15',
],
'OPTIONS': {
'DB': 1,
'PASSWORD': 'yadayada',
'PARSER_CLASS': 'redis.connection.HiredisParser',
'PICKLE_VERSION': -1,
'MASTER_CACHE': 'redis://:yadayada@localhost:6381/15',
},
},
})
class RedisUrlRegressionTests(SetupMixin, TestCase):
def test_unix_path_error_using_redis_url(self):
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment