(self, parse_gid, setgid, setuid)
| 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 |
nothing calls this directly
no test coverage detected