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

Method test_pidfile_default

t/unit/apps/test_multi.py:442–447  ·  view source on GitHub ↗
(self, mock_exists)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

from_kwargsMethod · 0.80

Tested by

no test coverage detected