MCPcopy Create free account
hub / github.com/celery/celery / test_with_initgroups

Method test_with_initgroups

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

Source from the content-addressed store, hash-verified

530 @patch('pwd.getpwuid')
531 @patch('os.initgroups', create=True)
532 def test_with_initgroups(self, initgroups_, getpwuid):
533 getpwuid.return_value = ['user']
534 initgroups(5001, 50001)
535 initgroups_.assert_called_with('user', 50001)
536
537 @patch('celery.platforms.setgroups')
538 @patch('grp.getgrall')

Callers

nothing calls this directly

Calls 1

initgroupsFunction · 0.90

Tested by

no test coverage detected