(self)
| 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): |