MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_o2m_any

Method test_o2m_any

test/orm/test_query.py:1734–1741  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1732 assert_raises(NotImplementedError, op, "x")
1733
1734 def test_o2m_any(self):
1735 User, Address = self.classes.User, self.classes.Address
1736 self._test(
1737 User.addresses.any(Address.id == 17),
1738 "EXISTS (SELECT 1 FROM addresses "
1739 "WHERE users.id = addresses.user_id AND addresses.id = :id_1)",
1740 entity=User,
1741 )
1742
1743 def test_o2m_any_aliased(self):
1744 User, Address = self.classes.User, self.classes.Address

Callers

nothing calls this directly

Calls 2

_testMethod · 0.95
anyMethod · 0.45

Tested by

no test coverage detected