MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _fixture

Method _fixture

test/aaa_profiling/test_orm.py:585–595  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

583 cls.mapper_registry.map_imperatively(Parent, parent)
584
585 def _fixture(self):
586 Parent = self.classes.Parent
587 sess = fixture_session()
588 sess.add_all(
589 [
590 Parent(data1="d1", data2="d2", data3="d3", data4="d4")
591 for i in range(10)
592 ]
593 )
594 sess.commit()
595 sess.close()
596
597 def test_query_cols(self):
598 Parent = self.classes.Parent

Callers 1

test_query_colsMethod · 0.95

Calls 5

fixture_sessionFunction · 0.90
ParentClass · 0.70
add_allMethod · 0.45
commitMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected