MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_expression

Method test_expression

test/ext/test_hybrid.py:636–642  ·  view source on GitHub ↗
(self, use_inplace, use_classmethod)

Source from the content-addressed store, hash-verified

634 @testing.variation("use_inplace", [True, False])
635 @testing.variation("use_classmethod", [True, False])
636 def test_expression(self, use_inplace, use_classmethod):
637 A = self._fixture(
638 use_inplace=use_inplace, use_classmethod=use_classmethod
639 )
640 self.assert_compile(
641 A.value.__clause_element__(), "foo(a.value) + bar(a.value)"
642 )
643
644 def test_expression_isnt_clause_element(self):
645 A = self._wrong_expr_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