MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_arithmetic

Method test_arithmetic

test/orm/test_query.py:1614–1621  ·  view source on GitHub ↗
(self, py_op, sql_op, lhs, rhs, res)

Source from the content-addressed store, hash-verified

1612 id_="aar",
1613 )
1614 def test_arithmetic(self, py_op, sql_op, lhs, rhs, res):
1615 User = self.classes.User
1616
1617 lhs = testing.resolve_lambda(lhs, User=User)
1618 rhs = testing.resolve_lambda(rhs, User=User)
1619
1620 fixture_session().query(User)
1621 self._test(py_op(lhs, rhs), res % sql_op)
1622
1623 @testing.combinations(
1624 (operators.lt, "<", ">"),

Callers

nothing calls this directly

Calls 3

_testMethod · 0.95
fixture_sessionFunction · 0.90
queryMethod · 0.45

Tested by

no test coverage detected