MCPcopy
hub / github.com/celery/celery / test_no_task

Method test_no_task

t/unit/app/test_log.py:20–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18class test_TaskFormatter:
19
20 def test_no_task(self):
21 class Record:
22 msg = 'hello world'
23 levelname = 'info'
24 exc_text = exc_info = None
25 stack_info = None
26
27 def getMessage(self):
28 return self.msg
29 record = Record()
30 x = TaskFormatter()
31 x.format(record)
32 assert record.task_name == '???'
33 assert record.task_id == '???'
34
35
36class test_logger_isa:

Callers

nothing calls this directly

Calls 3

formatMethod · 0.95
TaskFormatterClass · 0.90
RecordClass · 0.70

Tested by

no test coverage detected