NotSqrt %!s(int64=10) %!d(string=hai) anos
pai
achega
ee1ee812de
Modificáronse 1 ficheiros con 10 adicións e 5 borrados
  1. 10 5
      celery/tests/tasks/test_trace.py

+ 10 - 5
celery/tests/tasks/test_trace.py

@@ -109,11 +109,16 @@ class test_trace(TraceCase):
             pass
         empty.backend = Mock()
 
-        sig = {'chord_size': None, 'task': 'empty', 'args': (), 'options': {}, 'subtask_type': None, 'kwargs': {}, 'immutable': False}
-        callbacks = [
-            sig,
-            {'chord_size': None, 'task': 'celery.group', 'args': (), 'options': {}, 'subtask_type': 'group', 'kwargs': {'tasks': (empty(), empty())}, 'immutable': False}
-        ]
+        sig = {
+            'chord_size': None, 'task': 'empty', 'args': (), 'options': {},
+            'subtask_type': None, 'kwargs': {}, 'immutable': False
+        }
+        group_sig = {
+            'chord_size': None, 'task': 'celery.group', 'args': (),
+            'options': {}, 'subtask_type': 'group',
+            'kwargs': {'tasks': (empty(), empty())}, 'immutable': False
+        }
+        callbacks = [sig, group_sig]
 
         # should not raise an exception
         self.trace(empty, [], {}, request={'callbacks': callbacks})