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

Method test_select_limit

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

Source from the content-addressed store, hash-verified

1001 )
1002
1003 def test_select_limit(self, connection):
1004 users, addresses = self.tables("users", "addresses")
1005 r = connection.execute(
1006 users.select().limit(3).order_by(users.c.user_id)
1007 ).fetchall()
1008 self.assert_(r == [(1, "john"), (2, "jack"), (3, "ed")], repr(r))
1009
1010 @testing.requires.offset
1011 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