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

Method test_get_engine_kwargs

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

Source from the content-addressed store, hash-verified

1365
1366 @patch('celery.backends.database.session.create_engine')
1367 def test_get_engine_kwargs(self, create_engine):
1368 s = SessionManager()
1369 engine = s.get_engine('dbur', foo=1, pool_size=5)
1370 assert engine is create_engine()
1371 engine2 = s.get_engine('dburi', foo=1)
1372 assert engine2 is engine
1373
1374 def test_invalidate_disposes_cached_engine(self):
1375 s = SessionManager()

Callers

nothing calls this directly

Calls 2

get_engineMethod · 0.95
SessionManagerClass · 0.90

Tested by

no test coverage detected