MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_as_comparison_annotate

Method test_as_comparison_annotate

test/sql/test_functions.py:1086–1094  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1084 )
1085
1086 def test_as_comparison_annotate(self):
1087 fn = func.foobar("x", "y", "q", "p", "r").as_comparison(2, 5)
1088
1089 from sqlalchemy.sql import annotation
1090
1091 fn_annotated = annotation._deep_annotate(fn, {"token": "yes"})
1092
1093 eq_(fn.left._annotations, {})
1094 eq_(fn_annotated.left._annotations, {"token": "yes"})
1095
1096 def test_as_comparison_many_argument(self):
1097 fn = func.some_comparison("x", "y", "z", "p", "q", "r").as_comparison(

Callers

nothing calls this directly

Calls 3

eq_Function · 0.90
as_comparisonMethod · 0.80
foobarMethod · 0.80

Tested by

no test coverage detected