コード例 #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
ファイル: test_sqs.py プロジェクト: CrazyLionHeart/kombu
 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
ファイル: test_sqs.py プロジェクト: CrazyLionHeart/kombu
 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
ファイル: test_sqs.py プロジェクト: walkacross/kombu
 def test_using_async_connection(self):
     for region in regions():
         assert region.connection_cls is AsyncSQSConnection
コード例 #10
0
ファイル: test_sqs.py プロジェクト: walkacross/kombu
 def test_when_no_boto_installed(self, patching):
     patching('kombu.async.aws.sqs.boto', None)
     with pytest.raises(ImportError):
         regions()