MCPcopy
hub / github.com/celery/celery / test_only_gid

Method test_only_gid

t/unit/utils/test_platforms.py:314–319  ·  view source on GitHub ↗
(self, parse_gid, setgid, setuid)

Source from the content-addressed store, hash-verified

312 @patch('celery.platforms.setgid')
313 @patch('celery.platforms.parse_gid')
314 def test_only_gid(self, parse_gid, setgid, setuid):
315 parse_gid.return_value = 50001
316 maybe_drop_privileges(gid='group')
317 parse_gid.assert_called_with('group')
318 setgid.assert_called_with(50001)
319 setuid.assert_not_called()
320
321
322@t.skip.if_win32

Callers

nothing calls this directly

Calls 1

maybe_drop_privilegesFunction · 0.90

Tested by

no test coverage detected