MCPcopy
hub / github.com/celery/celery / test_mp_hostname

Method test_mp_hostname

t/unit/utils/test_platforms.py:106–109  ·  view source on GitHub ↗
(self, current_process, set_process_title)

Source from the content-addressed store, hash-verified

104 @patch('celery.platforms.set_process_title')
105 @patch('celery.platforms.current_process')
106 def test_mp_hostname(self, current_process, set_process_title):
107 current_process().name = 'Foo'
108 set_mp_process_title('foo', hostname='a@q.com', info='hello')
109 set_process_title.assert_called_with('foo: a@q.com:Foo', info='hello')
110
111
112class test_Signals:

Callers

nothing calls this directly

Calls 2

set_mp_process_titleFunction · 0.90
current_processFunction · 0.85

Tested by

no test coverage detected