MCPcopy
hub / github.com/celery/celery / test_incomplete_task_cls

Method test_incomplete_task_cls

t/unit/tasks/test_tasks.py:1005–1012  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1003 assert task_kwargs.get(arg_name) == arg_value
1004
1005 def test_incomplete_task_cls(self):
1006
1007 class IncompleteTask(Task):
1008 app = self.app
1009 name = 'c.unittest.t.itask'
1010
1011 with pytest.raises(NotImplementedError):
1012 IncompleteTask().run()
1013
1014 def test_task_kwargs_must_be_dictionary(self):
1015 with pytest.raises(TypeError):

Callers

nothing calls this directly

Calls 3

IncompleteTaskClass · 0.85
raisesMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected