MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_is_comparison_legacy

Method test_is_comparison_legacy

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

Source from the content-addressed store, hash-verified

4593
4594class CustomOpTest(fixtures.TestBase):
4595 def test_is_comparison_legacy(self):
4596 c = column("x")
4597 c2 = column("y")
4598 op1 = c.op("$", is_comparison=True)(c2).operator
4599 op2 = c.op("$", is_comparison=False)(c2).operator
4600
4601 assert operators.is_comparison(op1)
4602 assert not operators.is_comparison(op2)
4603
4604 def test_is_comparison_bool_op(self):
4605 c = column("x")

Callers

nothing calls this directly

Calls 3

columnFunction · 0.90
is_comparisonMethod · 0.80
opMethod · 0.45

Tested by

no test coverage detected