MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_unary_no_ops

Method test_unary_no_ops

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

Source from the content-addressed store, hash-verified

739 self.assert_compile(~(~col), "!!! (!!! somecol)")
740
741 def test_unary_no_ops(self):
742 assert_raises_message(
743 exc.CompileError,
744 "Unary expression has no operator or modifier",
745 UnaryExpression(literal("x")).compile,
746 )
747
748 def test_unary_both_ops(self):
749 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