MCPcopy
hub / github.com/celery/celery / test_ps

Function test_ps

t/unit/utils/test_debug.py:77–86  ·  view source on GitHub ↗
(patching)

Source from the content-addressed store, hash-verified

75
76
77def test_ps(patching):
78 Process = patching('celery.utils.debug.Process')
79 getpid = patching('os.getpid')
80 prev, debug._process = debug._process, None
81 try:
82 debug.ps()
83 Process.assert_called_with(getpid())
84 assert debug._process is Process()
85 finally:
86 debug._process = prev

Callers

nothing calls this directly

Calls 1

patchingFunction · 0.85

Tested by

no test coverage detected