Prechádzať zdrojové kódy

Added examples/ to MANIFEST.in

Ask Solem 14 rokov pred
rodič
commit
9c41f593cf
2 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 1 0
      MANIFEST.in
  2. 2 2
      celery/tests/test_routes.py

+ 1 - 0
MANIFEST.in

@@ -13,6 +13,7 @@ recursive-include celery *.py
 recursive-include docs *
 recursive-include tests *
 recursive-include contrib *
+recursive-include examples *
 prune tests/*.pyc
 prune docs/*.pyc
 prune contrib/*.pyc

+ 2 - 2
celery/tests/test_routes.py

@@ -4,7 +4,7 @@ import unittest2 as unittest
 from celery import conf
 from celery import routes
 from celery.utils.functional import wraps
-from celery.exceptions import RouteNotFound
+from celery.exceptions import QueueNotFound
 
 
 def E(queues):
@@ -57,7 +57,7 @@ class test_MapRoute(unittest.TestCase):
     def test_expand_route_not_found(self):
         expand = E(conf.QUEUES)
         route = routes.MapRoute({"a": "x"})
-        self.assertRaises(RouteNotFound, expand, route.route_for_task("a"))
+        self.assertRaises(QueueNotFound, expand, route.route_for_task("a"))
 
 
 class test_lookup_route(unittest.TestCase):