Пример #1
0
 def sqs(self):
     if self._sqs is None:
         self._sqs = self._aws_connect_to(SQSConnection, regions())
     return self._sqs
Пример #2
0
 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)
Пример #5
0
 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()