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

Method test_arithmetic

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

Source from the content-addressed store, hash-verified

1617 id_="aar",
1618 )
1619 def test_arithmetic(self, py_op, sql_op, lhs, rhs, res):
1620 User = self.classes.User
1621
1622 lhs = testing.resolve_lambda(lhs, User=User)
1623 rhs = testing.resolve_lambda(rhs, User=User)
1624
1625 fixture_session().query(User)
1626 self._test(py_op(lhs, rhs), res % sql_op)
1627
1628 @testing.combinations(
1629 (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