MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_setup_getitem

Method test_setup_getitem

test/sql/test_operators.py:1181–1186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1179 self.__dialect__ = MyDialect()
1180
1181 def test_setup_getitem(self):
1182 col = Column("x", self.MyType())
1183
1184 is_(col[5].type._type_affinity, JSON)
1185 is_(col[5]["foo"].type._type_affinity, JSON)
1186 is_(col[("a", "b", "c")].type._type_affinity, JSON)
1187
1188 @testing.combinations(
1189 (lambda col: col["foo"] + " ", "(x -> :x_1) || :param_1"),

Callers

nothing calls this directly

Calls 2

ColumnClass · 0.90
is_Function · 0.90

Tested by

no test coverage detected