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

Method test_query

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

Source from the content-addressed store, hash-verified

1234 )
1235
1236 def test_query(self):
1237 A = self._fixture()
1238 sess = fixture_session()
1239 self.assert_compile(
1240 sess.query(A).filter(A.value(5) == "foo"),
1241 "SELECT a.id AS a_id, a.value AS a_value "
1242 "FROM a WHERE foo(a.value, :foo_1) + :foo_2 = :param_1",
1243 )
1244
1245 def test_aliased_query(self):
1246 A = self._fixture()

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
fixture_sessionFunction · 0.90
assert_compileMethod · 0.80
filterMethod · 0.45
queryMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected