示例#1
0
文件: SQS.py 项目: juancferrer/kombu
 def sqs(self):
     if self._sqs is None:
         self._sqs = self._aws_connect_to(SQSConnection, regions())
     return self._sqs
 def test_using_async_connection(self):
     for region in regions():
         self.assertIs(region.connection_cls, AsyncSQSConnection)
示例#3
0
 def sqs(self):
     if self._sqs is None:
         self._sqs = self._aws_connect_to(SQSConnection, regions())
     return self._sqs
示例#4
0
 def test_using_async_connection(self):
     for region in regions():
         self.assertIs(region.connection_cls, AsyncSQSConnection)
 def test_when_no_boto_installed(self):
     with set_module_symbol('kombu.async.aws.sqs', 'boto', None):
         with self.assertRaises(ImportError):
             regions()
示例#6
0
 def test_when_no_boto_installed(self):
     with set_module_symbol('kombu.async.aws.sqs', 'boto', None):
         with self.assertRaises(ImportError):
             regions()
示例#7
0
 def test_using_async_connection(self):
     for region in regions():
         assert region.connection_cls is AsyncSQSConnection
示例#8
0
 def test_when_no_boto_installed(self, patching):
     patching('kombu.async.aws.sqs.boto', None)
     with pytest.raises(ImportError):
         regions()
示例#9
0
 def test_using_async_connection(self):
     for region in regions():
         assert region.connection_cls is AsyncSQSConnection
示例#10
0
 def test_when_no_boto_installed(self, patching):
     patching('kombu.async.aws.sqs.boto', None)
     with pytest.raises(ImportError):
         regions()