Example #1
0
 def test_annotate(self):
     with patch("celery.app.task.resolve_all_annotations") as anno:
         anno.return_value = [{"FOO": "BAR"}]
         Task.annotate()
         self.assertEqual(Task.FOO, "BAR")
Example #2
0
 def test_annotate(self):
     with patch('celery.app.task.resolve_all_annotations') as anno:
         anno.return_value = [{'FOO': 'BAR'}]
         Task.annotate()
         self.assertEqual(Task.FOO, 'BAR')
Example #3
0
 def test_annotate(self):
     with patch('celery.app.task.resolve_all_annotations') as anno:
         anno.return_value = [{'FOO': 'BAR'}]
         Task.annotate()
         self.assertEqual(Task.FOO, 'BAR')
Example #4
0
 def test_annotate(self):
     with patch("celery.app.task.resolve_all_annotations") as anno:
         anno.return_value = [{"FOO": "BAR"}]
         Task.annotate()
         self.assertEqual(Task.FOO, "BAR")