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

Method test_after_fork

t/unit/backends/test_database.py:1350–1354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1348class test_SessionManager:
1349
1350 def test_after_fork(self):
1351 s = SessionManager()
1352 assert not s.forked
1353 s._after_fork()
1354 assert s.forked
1355
1356 @patch('celery.backends.database.session.create_engine')
1357 def test_get_engine_forked(self, create_engine):

Callers

nothing calls this directly

Calls 2

_after_forkMethod · 0.95
SessionManagerClass · 0.90

Tested by

no test coverage detected