MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_join_render

Method test_join_render

test/orm/test_joins.py:3392–3407  ·  view source on GitHub ↗
(self, spec, expected)

Source from the content-addressed store, hash-verified

3390 ),
3391 )
3392 def test_join_render(self, spec, expected):
3393 User, Address, Order = self.classes("User", "Address", "Order")
3394 user_table, address_table, order_table = self.tables(
3395 "users", "addresses", "orders"
3396 )
3397
3398 sess = fixture_session()
3399
3400 q = testing.resolve_lambda(spec, **locals())
3401
3402 self.assert_compile(q, expected)
3403
3404 self.assert_compile(
3405 q.set_label_style(LABEL_STYLE_TABLENAME_PLUS_COL).statement,
3406 expected,
3407 )
3408
3409 def test_core_round_trip(self):
3410 user_table, address_table = self.tables("users", "addresses")

Callers

nothing calls this directly

Calls 4

fixture_sessionFunction · 0.90
localsFunction · 0.85
assert_compileMethod · 0.80
set_label_styleMethod · 0.45

Tested by

no test coverage detected