(self, mock_exists)
| 440 | |
| 441 | @patch('celery.apps.multi.os.path.exists') |
| 442 | def test_pidfile_default(self, mock_exists): |
| 443 | n = Node.from_kwargs( |
| 444 | 'foo@bar.com', |
| 445 | ) |
| 446 | assert n.options['--pidfile'] == os.path.normpath('/var/run/celery/%n.pid') |
| 447 | mock_exists.assert_any_call(os.path.normpath('/var/run/celery')) |
| 448 | |
| 449 | @patch('celery.apps.multi.os.makedirs') |
| 450 | @patch('celery.apps.multi.os.path.exists', return_value=False) |
nothing calls this directly
no test coverage detected