MCPcopy
hub / github.com/celery/celery / test_task_too_many_args

Method test_task_too_many_args

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

Source from the content-addressed store, hash-verified

166 assert task.name == app.main + '.fun'
167
168 def test_task_too_many_args(self):
169 with pytest.raises(TypeError):
170 self.app.task(Mock(name='fun'), True)
171 with pytest.raises(TypeError):
172 self.app.task(Mock(name='fun'), True, 1, 2)
173
174 def test_with_config_source(self):
175 with self.Celery(config_source=ObjectConfig) as app:

Callers

nothing calls this directly

Calls 2

raisesMethod · 0.45
taskMethod · 0.45

Tested by

no test coverage detected