Skip to content

Commit a846edb

Browse files
committed
test(kernel): cover zero row limit
1 parent 96a3c36 commit a846edb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/test_kernel_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def test_fetchall_arrow(conn):
183183
assert table.column_names == ["a", "b"]
184184

185185

186-
@pytest.mark.parametrize("row_limit", [None, 1, 5])
186+
@pytest.mark.parametrize("row_limit", [None, 0, 1, 5])
187187
def test_cursor_row_limit(conn, row_limit):
188188
with conn.cursor(row_limit=row_limit) as cur:
189189
cur.execute("SELECT id FROM range(10) ORDER BY id")

tests/unit/test_kernel_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def test_execute_command_forwards_query_tags():
436436
assert stmt.execute.called
437437

438438

439-
@pytest.mark.parametrize("row_limit", [None, 1, 5])
439+
@pytest.mark.parametrize("row_limit", [None, 0, 1, 5])
440440
def test_execute_command_forwards_row_limit(row_limit):
441441
c = _make_client()
442442
c._kernel_session = MagicMock()

0 commit comments

Comments
 (0)