MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_select_limit

Method test_select_limit

test/sql/test_query.py:935–940  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

933 )
934
935 def test_select_limit(self, connection):
936 users, addresses = self.tables("users", "addresses")
937 r = connection.execute(
938 users.select().limit(3).order_by(users.c.user_id)
939 ).fetchall()
940 self.assert_(r == [(1, "john"), (2, "jack"), (3, "ed")], repr(r))
941
942 @testing.requires.offset
943 def test_select_limit_offset(self, connection):

Callers

nothing calls this directly

Calls 6

fetchallMethod · 0.45
executeMethod · 0.45
order_byMethod · 0.45
limitMethod · 0.45
selectMethod · 0.45
assert_Method · 0.45

Tested by

no test coverage detected