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

Method _fixture

test/orm/test_utils.py:159–171  ·  view source on GitHub ↗
(self, cls, properties={})

Source from the content-addressed store, hash-verified

157 __dialect__ = "default"
158
159 def _fixture(self, cls, properties={}):
160 table = Table(
161 "point",
162 MetaData(),
163 Column("id", Integer(), primary_key=True),
164 Column("x", Integer),
165 Column("y", Integer),
166 )
167 clear_mappers()
168 self.mapper_registry.map_imperatively(
169 cls, table, properties=properties
170 )
171 return table
172
173 def test_simple(self):
174 class Point:

Callers 15

test_simpleMethod · 0.95
test_named_entityMethod · 0.95
test_named_selectableMethod · 0.95
test_instancemethodMethod · 0.95
test_classmethodMethod · 0.95
test_simple_propertyMethod · 0.95
test_descriptorsMethod · 0.95

Calls 6

TableClass · 0.90
MetaDataClass · 0.90
ColumnClass · 0.90
IntegerClass · 0.90
clear_mappersFunction · 0.90
map_imperativelyMethod · 0.80

Tested by

no test coverage detected