MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_setup_getitem

Method test_setup_getitem

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

Source from the content-addressed store, hash-verified

1029 self.__dialect__ = MyDialect()
1030
1031 def test_setup_getitem(self):
1032 col = Column("x", self.MyType())
1033
1034 is_(col[5].type._type_affinity, JSON)
1035 is_(col[5]["foo"].type._type_affinity, JSON)
1036 is_(col[("a", "b", "c")].type._type_affinity, JSON)
1037
1038 @testing.combinations(
1039 (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