MCPcopy
hub / github.com/celery/celery / test_task

Method test_task

t/unit/app/test_app.py:158–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

156 assert app.tasks['celery.chain']
157
158 def test_task(self):
159 with self.Celery('foozibari') as app:
160
161 def fun():
162 pass
163
164 fun.__module__ = '__main__'
165 task = app.task(fun)
166 assert task.name == app.main + '.fun'
167
168 def test_task_too_many_args(self):
169 with pytest.raises(TypeError):

Callers

nothing calls this directly

Calls 1

taskMethod · 0.45

Tested by

no test coverage detected