On Wednesday 21 June 2017 09:12:17 bonet wrote:
> I'm expecting the denerated RQ_QUEUES dict to be like this one which
> is working :
>
> RQ_QUEUES = {
> 'default': {
> 'USE_REDIS_CACHE': 'default',
> },
> 'q1': {
> 'USE_REDIS_CACHE': 'default',
> },
> 'q2': {
> 'USE_REDIS_CACHE': 'default',
> },
> }
>
So did you test that?
from django.conf import settings
from django.test import SimpleTestCase
class ConfigTest(SimpleTestCase):
def test_rq_dict(self):
self.assertTrue(hasattr(settings, 'RQ_QUEUES'))
expect = {
'default': {
'USE_REDIS_CACHE': 'default',
},
'q1': {
'USE_REDIS_CACHE': 'default',
},
'q2': {
'USE_REDIS_CACHE': 'default',
}
}
self.assertDictEqual(expect, settings.RQ_QUEUES)
--
Melvyn Sopacua
No comments:
Post a Comment