Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(11)  |  Derive(0)  |  Import(11)

        def _sqlalchemy_installed():
    try:
        import sqlalchemy
    except ImportError:
        raise ImproperlyConfigured(
            'The database result backend requires SQLAlchemy to be installed.'
            'See http://pypi.python.org/pypi/SQLAlchemy')
    return sqlalchemy
        


src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/tests/test_backends/test_database.py   socorro(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules("sqlalchemy"):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/o/p/openquake-packages-HEAD/celery/celery/tests/test_backends/test_database.py   openquake-packages(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules("sqlalchemy"):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/celery/tests/test_backends/test_database.py   make.mozilla.org(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules("sqlalchemy"):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/o/h/oh-mainline-HEAD/vendor/packages/celery/celery/tests/test_backends/test_database.py   oh-mainline(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules("sqlalchemy"):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/m/o/mozillians-HEAD/vendor-local/lib/python/celery/tests/test_backends/test_database.py   mozillians(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules("sqlalchemy"):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/p/l/playdoh-lib-HEAD/lib/python/celery/tests/test_backends/test_database.py   playdoh-lib(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules("sqlalchemy"):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/k/u/kuma-lib-HEAD/packages/celery/celery/tests/test_backends/test_database.py   kuma-lib(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules("sqlalchemy"):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/tests/backends/test_database.py   firefox-flicks(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules('sqlalchemy'):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/c/e/celery-HEAD/celery/tests/backends/test_database.py   celery(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules('sqlalchemy'):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/tests/backends/test_database.py   antisocial(Download)
    def test_missing_SQLAlchemy_raises_ImproperlyConfigured(self):
        with mask_modules('sqlalchemy'):
            from celery.backends.database import _sqlalchemy_installed
            with self.assertRaises(ImproperlyConfigured):
                _sqlalchemy_installed()

  1 | 2  Next