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

Method go

test/orm/test_relationships.py:6628–6635  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6626 result = [None]
6627
6628 def go():
6629 x = q.filter(User.id == 7).all()
6630 assert_raises_message(
6631 sa.exc.InvalidRequestError,
6632 "'User.addresses' is not available due to lazy='raise'",
6633 lambda: x[0].addresses,
6634 )
6635 result[0] = x
6636
6637 self.assert_sql_count(testing.db, go, 1)
6638

Callers

nothing calls this directly

Calls 6

assert_raises_messageFunction · 0.90
eq_Function · 0.90
raiseloadMethod · 0.80
allMethod · 0.45
filterMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected