コード例 #1
0
 def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
     with mask_modules('sqlalchemy'):
         from celery.backends.database import _sqlalchemy_installed
         with self.assertRaises(ImproperlyConfigured):
             _sqlalchemy_installed()
コード例 #2
0
ファイル: test_database.py プロジェクト: avinash011/celery
 def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
     with mask_modules("sqlalchemy"):
         from celery.backends.database import _sqlalchemy_installed
         with self.assertRaises(ImproperlyConfigured):
             _sqlalchemy_installed()