Przeglądaj źródła

Write failing test

Marc Gibbons 8 lat temu
rodzic
commit
0ad41a09ae
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      t/unit/tasks/test_canvas.py

+ 4 - 0
t/unit/tasks/test_canvas.py

@@ -607,6 +607,10 @@ class test_chord(CanvasCase):
         x = chord([t1], body=t2)
         assert x.app is t2._app
 
+    def test_app_when_header_is_empty(self):
+        x = chord([], self.add.s(4, 4))
+        assert x.app is self.add.app
+
     @pytest.mark.usefixtures('depends_on_current_app')
     def test_app_fallback_to_current(self):
         from celery._state import current_app