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

Method test_use_pidfile

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

Source from the content-addressed store, hash-verified

939
940 @patch('celery.worker.worker.create_pidlock')
941 def test_use_pidfile(self, create_pidlock):
942 create_pidlock.return_value = Mock()
943 worker = self.create_worker(pidfile='pidfilelockfilepid')
944 worker.steps = []
945 worker.start()
946 create_pidlock.assert_called()
947 worker.stop()
948 worker.pidlock.release.assert_called()
949
950 def test_attrs(self):
951 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