MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_o2m_any

Method test_o2m_any

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

Source from the content-addressed store, hash-verified

1727 assert_raises(NotImplementedError, op, "x")
1728
1729 def test_o2m_any(self):
1730 User, Address = self.classes.User, self.classes.Address
1731 self._test(
1732 User.addresses.any(Address.id == 17),
1733 "EXISTS (SELECT 1 FROM addresses "
1734 "WHERE users.id = addresses.user_id AND addresses.id = :id_1)",
1735 entity=User,
1736 )
1737
1738 def test_o2m_any_aliased(self):
1739 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