MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_expression

Method test_expression

test/ext/test_serializer.py:136–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 )
135
136 def test_expression(self):
137 expr = select(users).select_from(users.join(addresses)).limit(5)
138 re_expr = serializer.loads(
139 serializer.dumps(expr, -1), users.metadata, None
140 )
141 eq_(str(expr), str(re_expr))
142 eq_(
143 Session.connection().execute(re_expr).fetchall(),
144 [(7, "jack"), (8, "ed"), (8, "ed"), (8, "ed"), (9, "fred")],
145 )
146
147 def test_query_one(self):
148 q = (

Callers

nothing calls this directly

Calls 10

selectFunction · 0.90
eq_Function · 0.90
limitMethod · 0.45
select_fromMethod · 0.45
joinMethod · 0.45
loadsMethod · 0.45
dumpsMethod · 0.45
fetchallMethod · 0.45
executeMethod · 0.45
connectionMethod · 0.45

Tested by

no test coverage detected