MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_single_entity

Method test_single_entity

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

Source from the content-addressed store, hash-verified

1974 return s, [u1, u2, u3, u4]
1975
1976 def test_single_entity(self):
1977 s, (u1, u2, u3, u4) = self._fixture()
1978 User = self.classes.User
1979
1980 q = s.query(User)
1981 collection = [u1, u2, u3, u4]
1982
1983 with assertions.expect_deprecated_20(merge_result_dep):
1984 it = q.merge_result(collection)
1985 eq_([x.id for x in it], [1, 2, 7, 8])
1986
1987 def test_single_column(self):
1988 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