MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_str_not_accepted_orm_join

Method test_str_not_accepted_orm_join

test/orm/test_joins.py:1377–1385  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1375 )
1376
1377 def test_str_not_accepted_orm_join(self):
1378 User, Address = self.classes.User, self.classes.Address
1379
1380 with expect_raises_message(
1381 sa.exc.ArgumentError,
1382 "ON clause, typically a SQL expression or ORM "
1383 "relationship attribute expected, got 'addresses'.",
1384 ):
1385 outerjoin(User, Address, "addresses")
1386
1387 def test_aliased_classes(self):
1388 User, Address = self.classes.User, self.classes.Address

Callers

nothing calls this directly

Calls 2

expect_raises_messageFunction · 0.90
outerjoinFunction · 0.90

Tested by

no test coverage detected