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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/10571390.6pfAvlbayS%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to