예제 #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
예제 #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
파일: test_sqs.py 프로젝트: Erve1879/kombu
 def test_using_async_connection(self):
     for region in regions():
         assert region.connection_cls is AsyncSQSConnection
예제 #8
0
파일: test_sqs.py 프로젝트: Erve1879/kombu
 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()