MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_query

Method test_query

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

Source from the content-addressed store, hash-verified

676 @testing.variation("use_inplace", [True, False])
677 @testing.variation("use_classmethod", [True, False])
678 def test_query(self, use_inplace, use_classmethod):
679 A = self._fixture(
680 use_inplace=use_inplace, use_classmethod=use_classmethod
681 )
682 sess = fixture_session()
683 self.assert_compile(
684 sess.query(A).filter_by(value="foo"),
685 "SELECT a.id AS a_id, a.value AS a_value "
686 "FROM a WHERE foo(a.value) + bar(a.value) = :param_1",
687 )
688
689 @testing.variation("use_inplace", [True, False])
690 @testing.variation("use_classmethod", [True, False])

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
fixture_sessionFunction · 0.90
assert_compileMethod · 0.80
filter_byMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected