MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_annotated_one

Method test_annotated_one

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

Source from the content-addressed store, hash-verified

222 eq_(list(q2.with_entities(ua_2.id, ua_2.name)), [(9, "fred")])
223
224 def test_annotated_one(self):
225 j = join(users, addresses)._annotate({"foo": "bar"})
226 query = select(addresses).select_from(j)
227
228 str(query)
229 for prot in pickle_protocols():
230 pickled_failing = serializer.dumps(j, prot)
231 serializer.loads(pickled_failing, users.metadata, None)
232
233 def test_orm_join(self):
234 from sqlalchemy.orm import join

Callers

nothing calls this directly

Calls 7

joinFunction · 0.90
selectFunction · 0.90
pickle_protocolsFunction · 0.85
_annotateMethod · 0.45
select_fromMethod · 0.45
dumpsMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected