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

Method test_context

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

Source from the content-addressed store, hash-verified

34class test_session_cleanup:
35
36 def test_context(self):
37 session = Mock(name='session')
38 with session_cleanup(session):
39 pass
40 session.close.assert_called_with()
41
42 def test_context_raises(self):
43 session = Mock(name='session')

Callers

nothing calls this directly

Calls 1

session_cleanupFunction · 0.90

Tested by

no test coverage detected