Esempio n. 1
0
 def test_backend_by_url(
         self,
         url="arangodb://*****:*****@host:port/database/collection"):
     from celery.backends.arangodb import ArangoDbBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is ArangoDbBackend
     assert url_ == url
Esempio n. 2
0
 def test_backend_by_url(
     self, url="arangodb://*****:*****@host:port/database/collection"
 ):
     from celery.backends.arangodb import ArangoDbBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is ArangoDbBackend
     assert url_ == url
Esempio n. 3
0
def get_backend_by_url(backend=None, loader=None):
    """Deprecated alias to :func:`celery.app.backends.by_url`."""
    return _backends.by_url(backend=backend, loader=loader)
Esempio n. 4
0
    def test_backend_by_url(self, url='elasticsearch://localhost:9200/index'):
        backend, url_ = backends.by_url(url, self.app.loader)

        assert backend is ElasticsearchBackend
        assert url_ == url
Esempio n. 5
0
 def test_backend_by_url(self, url='couchdb://myhost/mycoolcontainer'):
     from celery.backends.couchdb import CouchBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is CouchBackend
     assert url_ == url
Esempio n. 6
0
 def test_backend_by_url(self, app, url='redis://localhost/1'):
     from celery.backends.redis import RedisBackend
     backend, url_ = backends.by_url(url, app.loader)
     assert backend is RedisBackend
     assert url_ == url
Esempio n. 7
0
 def test_get_backend_aliases(self, url, expect_cls, app):
     backend, url = backends.by_url(url, app.loader)
     assert isinstance(backend(app=app, url=url), expect_cls)
Esempio n. 8
0
 def test_backend_by_url(self, url='couchbase://myhost/mycoolbucket'):
     from celery.backends.couchbase import CouchbaseBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is CouchbaseBackend
     assert url_ == url
Esempio n. 9
0
def get_backend_by_url(backend=None, loader=None):
    """Deprecated alias to :func:`celery.app.backends.by_url`."""
    return _backends.by_url(backend=backend, loader=loader)
Esempio n. 10
0
    def test_backend_by_url(self, url='elasticsearch://localhost:9200/index'):
        backend, url_ = backends.by_url(url, self.app.loader)

        assert backend is ElasticsearchBackend
        assert url_ == url
Esempio n. 11
0
 def test_backend_by_url(self, url='dynamodb://'):
     from celery.app import backends
     from celery.backends.dynamodb import DynamoDBBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is DynamoDBBackend
     assert url_ == url
Esempio n. 12
0
 def test_backend_by_url(self, url='couchdb://myhost/mycoolcontainer'):
     from celery.backends.couchdb import CouchBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is CouchBackend
     assert url_ == url
Esempio n. 13
0
 def test_backend_by_url(self, app, url='redis://localhost/1'):
     from celery.backends.redis import RedisBackend
     backend, url_ = backends.by_url(url, app.loader)
     assert backend is RedisBackend
     assert url_ == url
Esempio n. 14
0
 def test_get_backend_aliases(self, url, expect_cls, app):
     backend, url = backends.by_url(url, app.loader)
     assert isinstance(backend(app=app, url=url), expect_cls)
Esempio n. 15
0
 def test_backend_by_url(self, url='riak://myhost/mycoolbucket'):
     from celery.app import backends
     from celery.backends.riak import RiakBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is RiakBackend
     assert url_ == url
Esempio n. 16
0
 def test_backend_by_url(self, url='dynamodb://'):
     from celery.app import backends
     from celery.backends.dynamodb import DynamoDBBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is DynamoDBBackend
     assert url_ == url
Esempio n. 17
0
 def test_backend_by_url(self, url='riak://myhost/mycoolbucket'):
     from celery.app import backends
     from celery.backends.riak import RiakBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is RiakBackend
     assert url_ == url
Esempio n. 18
0
 def test_backend_by_url(self, url='couchbase://myhost/mycoolbucket'):
     from celery.backends.couchbase import CouchbaseBackend
     backend, url_ = backends.by_url(url, self.app.loader)
     assert backend is CouchbaseBackend
     assert url_ == url