summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Barlow <rbarlow@redhat.com>2014-04-21 14:13:30 -0400
committerAsk Solem <ask@celeryproject.org>2014-05-06 13:59:05 +0100
commit917df5da62a88ff9734b05a70b4cec4b1269a2d9 (patch)
tree21284765bc580fd85ca5e0dd05476d13b2e8072c
parentf3b9ac0351617a830f9c4ac0b152f10d8e8e99e2 (diff)
downloadkombu-917df5da62a88ff9734b05a70b4cec4b1269a2d9.tar.gz
344 - added the skip decorator to three tests.
Three tests were missing the @skip_if_not_module('redis') decorator. https://github.com/celery/kombu/issues/344
-rw-r--r--kombu/tests/transport/test_redis.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kombu/tests/transport/test_redis.py b/kombu/tests/transport/test_redis.py
index 48f7c6be..fa1782b2 100644
--- a/kombu/tests/transport/test_redis.py
+++ b/kombu/tests/transport/test_redis.py
@@ -616,10 +616,12 @@ class test_Channel(Case):
self.channel.connection.client.virtual_host = 'dwqeq'
self.channel._connparams()
+ @skip_if_not_module('redis')
def test_connparams_allows_slash_in_db(self):
self.channel.connection.client.virtual_host = '/123'
self.assertEqual(self.channel._connparams()['db'], 123)
+ @skip_if_not_module('redis')
def test_connparams_db_can_be_int(self):
self.channel.connection.client.virtual_host = 124
self.assertEqual(self.channel._connparams()['db'], 124)
@@ -630,6 +632,7 @@ class test_Channel(Case):
redis.Channel._new_queue(self.channel, 'elaine', auto_delete=True)
self.assertIn('elaine', self.channel.auto_delete_queues)
+ @skip_if_not_module('redis')
def test_connparams_regular_hostname(self):
self.channel.connection.client.hostname = 'george.vandelay.com'
self.assertEqual(