MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_join_entity_arg

Method test_join_entity_arg

test/orm/test_lambdas.py:339–349  ·  view source on GitHub ↗
(self, plain_fixture, test_case)

Source from the content-addressed store, hash-verified

337 argnames="test_case",
338 )
339 def test_join_entity_arg(self, plain_fixture, test_case):
340 User, Address = plain_fixture
341
342 s = Session(testing.db, future=True)
343
344 stmt = testing.resolve_lambda(test_case, **locals())
345 self.assert_compile(
346 stmt,
347 "SELECT users.id AS users_id, users.name AS users_name "
348 "FROM users JOIN addresses ON users.id = addresses.user_id",
349 )
350
351
352class PolymorphicTest(_poly_fixtures._Polymorphic):

Callers

nothing calls this directly

Calls 3

SessionClass · 0.90
localsFunction · 0.85
assert_compileMethod · 0.80

Tested by

no test coverage detected