MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / go

Method go

test/orm/test_deprecations.py:902–913  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

900 # note this has multiple problems because we aren't giving Query
901 # the statement where it would be able to create an adapter
902 def go():
903 with testing.expect_deprecated(
904 r"Using the Query.instances\(\) method without a context",
905 "Retrieving row values using Column objects with only "
906 "matching names",
907 ):
908 result = list(
909 q.options(
910 contains_alias("ulist"), contains_eager("addresses")
911 ).instances(query.execute())
912 )
913 assert self.static.user_address_result == result
914
915 self.assert_sql_count(testing.db, go, 1)
916

Callers

nothing calls this directly

Calls 10

contains_aliasFunction · 0.90
contains_eagerFunction · 0.90
defaultloadFunction · 0.90
contains_eagerMethod · 0.80
instancesMethod · 0.45
optionsMethod · 0.45
executeMethod · 0.45
allMethod · 0.45
from_statementMethod · 0.45
connectionMethod · 0.45

Tested by

no test coverage detected