MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / setup_test

Method setup_test

test/orm/test_mapper.py:3190–3195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3188
3189class ORMLoggingTest(_fixtures.FixtureTest):
3190 def setup_test(self):
3191 self.buf = logging.handlers.BufferingHandler(100)
3192 for log in [logging.getLogger("sqlalchemy.orm")]:
3193 log.addHandler(self.buf)
3194
3195 self.mapper = registry().map_imperatively
3196
3197 def teardown_test(self):
3198 for log in [logging.getLogger("sqlalchemy.orm")]:

Callers

nothing calls this directly

Calls 1

registryClass · 0.90

Tested by

no test coverage detected