Browse Source

fixed routes test

Ask Solem 14 years ago
parent
commit
5bc6483f23
1 changed files with 2 additions and 1 deletions
  1. 2 1
      celery/tests/test_routes.py

+ 2 - 1
celery/tests/test_routes.py

@@ -79,7 +79,8 @@ class test_lookup_route(unittest.TestCase):
     @with_queues()
     def test_expands_queue_in_options(self):
         R = routes.prepare(())
-        router = routes.Router(R, conf.QUEUES, create_missing=True)
+        router = routes.Router(R, app_or_default().conf.CELERY_QUEUES,
+                               create_missing=True)
         # apply_async forwards all arguments, even exchange=None etc,
         # so need to make sure it's merged correctly.
         route = router.route({"queue": "testq",