MCPcopy
hub / github.com/celery/celery / test_with_initgroups

Method test_with_initgroups

t/unit/utils/test_platforms.py:382–385  ·  view source on GitHub ↗
(self, initgroups_, getpwuid)

Source from the content-addressed store, hash-verified

380 @patch('pwd.getpwuid')
381 @patch('os.initgroups', create=True)
382 def test_with_initgroups(self, initgroups_, getpwuid):
383 getpwuid.return_value = ['user']
384 initgroups(5001, 50001)
385 initgroups_.assert_called_with('user', 50001)
386
387 @patch('celery.platforms.setgroups')
388 @patch('grp.getgrall')

Callers

nothing calls this directly

Calls 1

initgroupsFunction · 0.90

Tested by

no test coverage detected