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

Method test_unary_no_ops

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

Source from the content-addressed store, hash-verified

719 self.assert_compile(~(~col), "!!! (!!! somecol)")
720
721 def test_unary_no_ops(self):
722 assert_raises_message(
723 exc.CompileError,
724 "Unary expression has no operator or modifier",
725 UnaryExpression(literal("x")).compile,
726 )
727
728 def test_unary_both_ops(self):
729 assert_raises_message(

Callers

nothing calls this directly

Calls 3

assert_raises_messageFunction · 0.90
literalFunction · 0.90
UnaryExpressionClass · 0.85

Tested by

no test coverage detected