MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_froms_join

Method test_froms_join

test/orm/test_core_compilation.py:120–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 eq_(stmt.get_final_froms(), [self.tables.users])
119
120 def test_froms_join(self):
121 User, Address = self.classes("User", "Address")
122 users, addresses = self.tables("users", "addresses")
123
124 stmt = select(User).join(User.addresses)
125
126 assert stmt.get_final_froms()[0].compare(users.join(addresses))
127
128 @testing.combinations(
129 (

Callers

nothing calls this directly

Calls 4

selectFunction · 0.90
get_final_fromsMethod · 0.80
joinMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected