Exemplo n.º 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()
Exemplo n.º 2
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()