MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_getindex_sqlexpr

Method test_getindex_sqlexpr

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

Source from the content-addressed store, hash-verified

1372 )
1373
1374 def test_getindex_sqlexpr(self):
1375 col = Column("x", self.MyType())
1376 col2 = Column("y", Integer())
1377
1378 self.assert_compile(col[col2], "x[y]", checkparams={})
1379
1380 self.assert_compile(
1381 col[col2 + 8], "x[(y + :y_1)]", checkparams={"y_1": 8}
1382 )
1383
1384 def test_getslice_literal(self):
1385 col = Column("x", self.MyType())

Callers

nothing calls this directly

Calls 3

ColumnClass · 0.90
IntegerClass · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected