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

Method test_setup_getitem

test/sql/test_operators.py:1181–1186  ·  test/sql/test_operators.py::JSONIndexOpTest.test_setup_getitem
(self)

Source from the content-addressed store, hash-verified

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