MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / define_tables

Method define_tables

test/ext/test_mutable.py:1170–1184  ·  view source on GitHub ↗
(cls, metadata)

Source from the content-addressed store, hash-verified

1168class MutableWithScalarPickleTest(_MutableDictTestBase, fixtures.MappedTest):
1169 @classmethod
1170 def define_tables(cls, metadata):
1171 MutableDict = cls._type_fixture()
1172
1173 mutable_pickle = MutableDict.as_mutable(PickleType)
1174 Table(
1175 "foo",
1176 metadata,
1177 Column(
1178 "id", Integer, primary_key=True, test_needs_autoincrement=True
1179 ),
1180 Column("skip", mutable_pickle),
1181 Column("data", mutable_pickle),
1182 Column("non_mutable_data", PickleType),
1183 Column("unrelated_data", String(50)),
1184 )
1185
1186 def test_non_mutable(self):
1187 self._test_non_mutable()

Callers

nothing calls this directly

Calls 5

TableClass · 0.90
ColumnClass · 0.90
StringClass · 0.90
as_mutableMethod · 0.80
_type_fixtureMethod · 0.45

Tested by

no test coverage detected