Skip to content

Commit bf198d2

Browse files
ai: apply changes for #1007 (2 review threads)
Addresses: - #4418426389 at tests/unit/test_fetches.py:458 - #4418426396 at tests/unit/test_sea_result_set.py:530 Signed-off-by: peco-engineer-bot[bot] <peco-engineer-bot[bot]@users.noreply.github.com>
1 parent 2199868 commit bf198d2

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎tests/unit/test_fetches.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ def test_mixed_fetches_keep_order_and_rownumber(self):
534534
self.assertEqual(rs.rownumber, 10)
535535
self.assertIsNone(rs.fetchone())
536536

537+
@pytest.mark.skipif(pa is None, reason="PyArrow is not installed")
537538
def test_fetchone_then_fetchall_arrow_keeps_order(self):
538539
rs = self.make_columnar_result_set(10, arraysize=4)
539540
self.assertEqual(rs.fetchone()[0], 0)

‎tests/unit/test_sea_result_set.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ def test_json_fetchone_converts_in_batches(
527527
assert [r.col2 for r in rows] == list(range(100))
528528
assert m.call_count <= 100 // 10 + 2
529529

530+
@pytest.mark.skipif(pyarrow is None, reason="PyArrow is not installed")
530531
def test_json_mixed_fetches_keep_order_and_rownumber(
531532
self, mock_connection, mock_sea_client, execute_response
532533
):
@@ -547,6 +548,7 @@ def test_json_mixed_fetches_keep_order_and_rownumber(
547548
assert rs.rownumber == 10
548549
assert rs.fetchone() is None
549550

551+
@pytest.mark.skipif(pyarrow is None, reason="PyArrow is not installed")
550552
def test_json_fetchone_then_fetchall_arrow_keeps_order(
551553
self, mock_connection, mock_sea_client, execute_response
552554
):

0 commit comments

Comments
 (0)