mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 01:18:11 +08:00
docs: Adds Custom broker class documentation
Also changes some of the variable and settings names, to make them less ambiguous.
This commit is contained in:
@@ -50,12 +50,12 @@ def test_redis():
|
||||
|
||||
|
||||
def test_custom():
|
||||
Conf.BROKER = 'brokers.redis_broker.Redis'
|
||||
Conf.BROKER_CLASS = 'brokers.redis_broker.Redis'
|
||||
broker = get_broker()
|
||||
assert broker.ping() is True
|
||||
assert broker.info() is not None
|
||||
assert broker.__class__.__name__ == 'Redis'
|
||||
Conf.BROKER = None
|
||||
Conf.BROKER_CLASS = None
|
||||
|
||||
|
||||
def test_disque():
|
||||
|
||||
Reference in New Issue
Block a user