Skip to content

Commit ee0c7c2

Browse files
committed
Implemented test case for with_columns function
This test case covers the code in tables.py within the with_columns function.
1 parent 7af1472 commit ee0c7c2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_tables.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,3 +1995,9 @@ def test_num_columns(table):
19951995
"""Test that Tables returns right number of columns"""
19961996
number = table.num_columns
19971997
assert number == 3
1998+
1999+
def test_with_columns(table):
2000+
"""Test that with_columns returns self if no labels_and_values passed"""
2001+
t = table.with_columns()
2002+
2003+
assert table is t

0 commit comments

Comments
 (0)