From eebbfe71234fdb09feae245867bde5c4face8831 Mon Sep 17 00:00:00 2001 From: sinchana-kumbale Date: Tue, 27 Feb 2024 18:39:01 +0530 Subject: [PATCH 1/3] Add test for tables.remove method --- tests/test_tables.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_tables.py b/tests/test_tables.py index 267e0ae1..eab51b97 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -1158,6 +1158,11 @@ def test_remove_single(table): z | 1 | 10 """) +def test_remove_none(table): + num_rows_before = table.num_rows + assert table.remove([]) is None + assert table.num_rows == num_rows_before + def test_remove_zeroth_row(table): table.remove(0) assert_equal(table, """ From cd73b759be4f304ecb40c15848e7882c684feeed Mon Sep 17 00:00:00 2001 From: sinchana-kumbale <77568895+sinchana-kumbale@users.noreply.github.com> Date: Mon, 4 Mar 2024 12:15:56 +0530 Subject: [PATCH 2/3] Update tab setting to 4 spaces test_tables.py From c5a87f051b246b662507d8beac1d1358e9101bf0 Mon Sep 17 00:00:00 2001 From: sinchana-kumbale Date: Wed, 6 Mar 2024 10:40:48 +0530 Subject: [PATCH 3/3] Update spacing --- tests/test_tables.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_tables.py b/tests/test_tables.py index eab51b97..eb1cf3e7 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -1159,9 +1159,9 @@ def test_remove_single(table): """) def test_remove_none(table): - num_rows_before = table.num_rows - assert table.remove([]) is None - assert table.num_rows == num_rows_before + num_rows_before = table.num_rows + assert table.remove([]) is None + assert table.num_rows == num_rows_before def test_remove_zeroth_row(table): table.remove(0)