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

Method _fixture

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

Source from the content-addressed store, hash-verified

592 cls.mapper_registry.map_imperatively(Parent, parent)
593
594 def _fixture(self):
595 Parent = self.classes.Parent
596 sess = fixture_session()
597 sess.add_all(
598 [
599 Parent(data1="d1", data2="d2", data3="d3", data4="d4")
600 for i in range(10)
601 ]
602 )
603 sess.commit()
604 sess.close()
605
606 def test_query_cols(self):
607 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