MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_const_expr_role

Method test_const_expr_role

test/sql/test_roles.py:110–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 )
109
110 def test_const_expr_role(self):
111 t = true()
112 is_(expect(roles.ConstExprRole, t), t)
113
114 f = false()
115 is_(expect(roles.ConstExprRole, f), f)
116
117 is_instance_of(expect(roles.ConstExprRole, True), True_)
118
119 is_instance_of(expect(roles.ConstExprRole, False), False_)
120
121 is_instance_of(expect(roles.ConstExprRole, None), Null)
122
123 def test_truncated_label_role(self):
124 is_instance_of(

Callers

nothing calls this directly

Calls 5

trueFunction · 0.90
is_Function · 0.90
expectFunction · 0.90
falseFunction · 0.90
is_instance_ofFunction · 0.90

Tested by

no test coverage detected