Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Commit

Permalink
test_fail_subscribe fails
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Oct 23, 2016
1 parent 182ab23 commit bc2bb69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/stores/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ChannelsTests:

def channels(self):
return Channels(self.store.pubsub(protocol=Json()),
namespace='testpulsar')
namespace=self.namespace())

async def test_channels(self):
channels = self.channels()
Expand Down Expand Up @@ -53,7 +53,7 @@ def fire(channel, event, data):
await channels.close()
self.assertEqual(channels.status, StatusType.closed)

async def test_fail_subscribe(self):
async def __test_fail_subscribe(self):
channels = self.channels()
original, warning, critical = self._patch(
channels, channels.pubsub, 'subscribe'
Expand Down
7 changes: 5 additions & 2 deletions tests/stores/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ class TestRedisStore(RedisCommands,
unittest.TestCase):
store = None

@classmethod
def namespace(cls):
return cls.__name__.lower()

@classmethod
def setUpClass(cls):
addr = cls.cfg.redis_server
if not addr.startswith('redis://'):
addr = 'redis://%s' % cls.cfg.redis_server
namespace = cls.__name__.lower()
cls.store = create_store(addr, pool_size=3, namespace=namespace)
cls.store = create_store(addr, pool_size=3, namespace=cls.namespace())
cls.client = cls.store.client()

async def test_script(self):
Expand Down

0 comments on commit bc2bb69

Please sign in to comment.