()
| 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 |
nothing calls this directly
no test coverage detected