From ee0c7c26f6b0f790545767f681b5599069fcaf42 Mon Sep 17 00:00:00 2001 From: MossIV Date: Sun, 7 Dec 2025 19:02:55 +1300 Subject: [PATCH] Implemented test case for with_columns function This test case covers the code in tables.py within the with_columns function. --- tests/test_tables.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_tables.py b/tests/test_tables.py index 2354f27d..17c3dc56 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -1995,3 +1995,9 @@ def test_num_columns(table): """Test that Tables returns right number of columns""" number = table.num_columns assert number == 3 + +def test_with_columns(table): + """Test that with_columns returns self if no labels_and_values passed""" + t = table.with_columns() + + assert table is t