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

Method test_single_entity

test/orm/test_deprecations.py:2835–2844  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2833 return s, [u1, u2, u3, u4]
2834
2835 def test_single_entity(self):
2836 s, (u1, u2, u3, u4) = self._fixture()
2837 User = self.classes.User
2838
2839 q = s.query(User)
2840 collection = [u1, u2, u3, u4]
2841
2842 with assertions.expect_deprecated_20(merge_result_dep):
2843 it = q.merge_result(collection)
2844 eq_([x.id for x in it], [1, 2, 7, 8])
2845
2846 def test_single_column(self):
2847 User = self.classes.User

Callers

nothing calls this directly

Calls 4

_fixtureMethod · 0.95
eq_Function · 0.90
merge_resultMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected