MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_single_column

Method test_single_column

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

Source from the content-addressed store, hash-verified

1985 eq_([x.id for x in it], [1, 2, 7, 8])
1986
1987 def test_single_column(self):
1988 User = self.classes.User
1989
1990 s = fixture_session()
1991
1992 q = s.query(User.id)
1993 collection = [(1,), (2,), (7,), (8,)]
1994 with assertions.expect_deprecated_20(merge_result_dep):
1995 it = q.merge_result(collection)
1996 eq_(list(it), [(1,), (2,), (7,), (8,)])
1997
1998 def test_entity_col_mix_plain_tuple(self):
1999 s, (u1, u2, u3, u4) = self._fixture()

Callers

nothing calls this directly

Calls 4

fixture_sessionFunction · 0.90
eq_Function · 0.90
merge_resultMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected