MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_override_expr

Method test_override_expr

test/ext/test_hybrid.py:870–878  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

868 eq_(p1.name, "Hello Mike")
869
870 def test_override_expr(self):
871 Person, _, _, OverrideExpr, _ = self._fixture()
872
873 self.assert_compile(Person.name.__clause_element__(), "person._name")
874
875 self.assert_compile(
876 OverrideExpr.name.__clause_element__(),
877 "concat(:concat_1, person._name)",
878 )
879
880 def test_override_comparator(self):
881 Person, _, _, _, OverrideComparator = self._fixture()

Callers

nothing calls this directly

Calls 3

_fixtureMethod · 0.95
assert_compileMethod · 0.80
__clause_element__Method · 0.45

Tested by

no test coverage detected