def setUp(self): self.persistence_helper = self.add_helper( PersistenceHelper(use_riak=True)) if riak_import_error is not None: import_skip(riak_import_error, 'riak') self.manager = self.persistence_helper.get_riak_manager() self.msg_helper = self.add_helper(MessageHelper())
def setUp(self): self.persistence_helper = self.add_helper( PersistenceHelper(use_riak=True)) if riak_import_error is not None: import_skip(riak_import_error, 'riakasaurus', 'riakasaurus.riak') self.manager = self.persistence_helper.get_riak_manager() self.msg_helper = self.add_helper(MessageHelper())
def setUp(self): self.persistence_helper = self.add_helper( PersistenceHelper(use_riak=True)) try: from vumi.components.message_store import MessageStore except ImportError, e: import_skip(e, 'riak')
def setUp(self): self.persistence_helper = self.add_helper( PersistenceHelper(use_riak=True)) try: from vumi.components.message_store import MessageStore except ImportError, e: import_skip(e, 'riak')
def create_riak_manager(self): """ Creates and returns a RiakManager, handling cleanup. """ try: from vumi.persist.riak_manager import RiakManager except ImportError, e: import_skip(e, 'riak', 'riak')
def setUp(self): self.persistence_helper = self.add_helper( PersistenceHelper(use_riak=True)) try: from vumi.components.message_store_api import ( MatchResource, MessageStoreAPIWorker) except ImportError, e: import_skip(e, 'riak')
def setUp(self): self.persistence_helper = self.add_helper( PersistenceHelper(use_riak=True)) try: from vumi.components.message_store_resource import ( MessageStoreResourceWorker) except ImportError, e: import_skip(e, 'riakasaurus', 'riakasaurus.riak')
def create_riak_manager(self): """ Creates and returns a RiakManager, handling cleanup. """ try: from vumi.persist.riak_manager import RiakManager except ImportError, e: import_skip(e, 'riak', 'riak')
def setup_txriak(deco, self): """ Set up a TxRiakManager on the given test class. """ try: from vumi.persist.txriak_manager import TxRiakManager except ImportError, e: import_skip(e, 'riak')
def setup_txriak(deco, self): """ Set up a TxRiakManager on the given test class. """ try: from vumi.persist.txriak_manager import TxRiakManager except ImportError, e: import_skip(e, 'riak')
def setUp(self): self.persistence_helper = self.add_helper( PersistenceHelper(use_riak=True)) try: from vumi.components.message_store_resource import ( MessageStoreResourceWorker) except ImportError, e: import_skip(e, 'riakasaurus', 'riakasaurus.riak')
def setUp(self): try: from vumi.persist.riak_manager import RiakManager except ImportError, e: import_skip(e, "riak")
def test_redis_from_config_fake_redis(self): fake_redis = FakeRedis() try: self.assertEqual(redis_from_config(fake_redis), fake_redis) except ImportError, e: import_skip(e, 'redis')
def start_server(self): try: from vumi.components.message_store_resource import MessageStoreResourceWorker except ImportError, e: import_skip(e, "riak")
def setUp(self): try: from vumi.persist.txriak_manager import TxRiakManager except ImportError, e: import_skip(e, 'riak', 'riak')
def _get_sync_redis_manager(self, config): try: from vumi.persist.redis_manager import RedisManager except ImportError, e: import_skip(e, 'redis')
def _get_async_riak_manager(self, config): try: from vumi.persist.txriak_manager import TxRiakManager except ImportError, e: import_skip(e, 'riakasaurus', 'riakasaurus.riak')
def setUp(self): try: from vumi.persist.redis_manager import RedisManager except ImportError, e: import_skip(e, 'redis')
def setUp(self): try: from vumi.persist.redis_manager import RedisManager except ImportError, e: import_skip(e, 'redis')
def _get_sync_redis_manager(self, config): try: from vumi.persist.redis_manager import RedisManager except ImportError, e: import_skip(e, 'redis')
def _get_sync_riak_manager(self, config): try: from vumi.persist.riak_manager import RiakManager except ImportError, e: import_skip(e, 'riak')
def setUp(self): try: from vumi.persist.riak_manager import RiakManager except ImportError, e: import_skip(e, 'riak')
def setUp(self): try: from vumi.persist.riak_manager import ( RiakManager, flatten_generator) except ImportError, e: import_skip(e, 'riak')
def setUp(self): try: from vumi.persist.txriak_manager import TxRiakManager except ImportError, e: import_skip(e, 'riakasaurus', 'riakasaurus.riak')
def test_redis_from_config_str(self): try: fake_redis = redis_from_config("FAKE_REDIS") except ImportError, e: import_skip(e, 'redis')
def setUp(self): try: from vumi.persist.txriak_manager import TxRiakManager from riakasaurus import transport except ImportError, e: import_skip(e, 'riakasaurus', 'riakasaurus.riak')
def _get_sync_riak_manager(self, config): try: from vumi.persist.riak_manager import RiakManager except ImportError, e: import_skip(e, 'riak')
def setUp(self): try: import raven raven # To keep pyflakes happy. except ImportError, e: import_skip(e, 'raven')
def start_server(self): try: from vumi.components.message_store_resource import ( MessageStoreResourceWorker) except ImportError, e: import_skip(e, 'riak')
def test_redis_from_config_fake_redis(self): fake_redis = FakeRedis() try: self.assertEqual(redis_from_config(fake_redis), fake_redis) except ImportError, e: import_skip(e, 'redis')
def test_redis_from_config_str(self): try: fake_redis = redis_from_config("FAKE_REDIS") except ImportError, e: import_skip(e, 'redis')
def _get_async_riak_manager(self, config): try: from vumi.persist.txriak_manager import TxRiakManager except ImportError, e: import_skip(e, 'riakasaurus', 'riakasaurus.riak')
def setUp(self): try: import raven raven # To keep pyflakes happy. except ImportError, e: import_skip(e, 'raven')