MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _fixture

Method _fixture

test/orm/test_versioning.py:171–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 pass
170
171 def _fixture(self):
172 Foo, version_table = self.classes.Foo, self.tables.version_table
173
174 self.mapper_registry.map_imperatively(
175 Foo, version_table, version_id_col=version_table.c.version_id
176 )
177 s1 = fixture_session()
178 return s1
179
180 @engines.close_open_connections
181 def test_notsane_warning(self):

Calls 2

fixture_sessionFunction · 0.90
map_imperativelyMethod · 0.80

Tested by

no test coverage detected