Skip to content

Commit

Permalink
Write failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcgibbons authored and georgepsarakis committed Mar 26, 2017
1 parent b6ca6b6 commit 0ad41a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/unit/tasks/test_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,10 @@ def test_app_when_app_in_task(self):
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
Expand Down

0 comments on commit 0ad41a0

Please sign in to comment.