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

Method test_get_engine_forked

t/unit/backends/test_database.py:1357–1364  ·  view source on GitHub ↗
(self, create_engine)

Source from the content-addressed store, hash-verified

1355
1356 @patch('celery.backends.database.session.create_engine')
1357 def test_get_engine_forked(self, create_engine):
1358 s = SessionManager()
1359 s._after_fork()
1360 engine = s.get_engine('dburi', foo=1)
1361 create_engine.assert_called_with('dburi', foo=1)
1362 assert engine is create_engine()
1363 engine2 = s.get_engine('dburi', foo=1)
1364 assert engine2 is engine
1365
1366 @patch('celery.backends.database.session.create_engine')
1367 def test_get_engine_kwargs(self, create_engine):

Callers

nothing calls this directly

Calls 3

_after_forkMethod · 0.95
get_engineMethod · 0.95
SessionManagerClass · 0.90

Tested by

no test coverage detected