MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_getslice_sqlexpr

Method test_getslice_sqlexpr

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

Source from the content-addressed store, hash-verified

1389 )
1390
1391 def test_getslice_sqlexpr(self):
1392 col = Column("x", self.MyType())
1393 col2 = Column("y", Integer())
1394
1395 self.assert_compile(
1396 col[col2 : col2 + 5], "x[y:y + :y_1]", checkparams={"y_1": 5}
1397 )
1398
1399 def test_getindex_literal_zeroind(self):
1400 col = Column("x", self.MyType(zero_indexes=True))

Callers

nothing calls this directly

Calls 3

ColumnClass · 0.90
IntegerClass · 0.90
assert_compileMethod · 0.80

Tested by

no test coverage detected