MCPcopy
hub / github.com/celery/celery / test_use_pidfile

Method test_use_pidfile

t/unit/worker/test_worker.py:781–788  ·  view source on GitHub ↗
(self, create_pidlock)

Source from the content-addressed store, hash-verified

779
780 @patch('celery.worker.worker.create_pidlock')
781 def test_use_pidfile(self, create_pidlock):
782 create_pidlock.return_value = Mock()
783 worker = self.create_worker(pidfile='pidfilelockfilepid')
784 worker.steps = []
785 worker.start()
786 create_pidlock.assert_called()
787 worker.stop()
788 worker.pidlock.release.assert_called()
789
790 def test_attrs(self):
791 worker = self.worker

Callers

nothing calls this directly

Calls 3

create_workerMethod · 0.95
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected