Skip to content

Commit

Permalink
Wrote test for column_index and num_columns functions in tables.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Cakan committed Aug 18, 2023
1 parent ec3ebcd commit c281ceb
Show file tree
Hide file tree
Showing 10 changed files with 17,540 additions and 0 deletions.
1,940 changes: 1,940 additions & 0 deletions .history/tests/test_tables_20230818142134.py

Large diffs are not rendered by default.

1,945 changes: 1,945 additions & 0 deletions .history/tests/test_tables_20230818142408.py

Large diffs are not rendered by default.

1,945 changes: 1,945 additions & 0 deletions .history/tests/test_tables_20230818142409.py

Large diffs are not rendered by default.

1,950 changes: 1,950 additions & 0 deletions .history/tests/test_tables_20230818143119.py

Large diffs are not rendered by default.

1,950 changes: 1,950 additions & 0 deletions .history/tests/test_tables_20230818143308.py

Large diffs are not rendered by default.

1,950 changes: 1,950 additions & 0 deletions .history/tests/test_tables_20230818143309.py

Large diffs are not rendered by default.

1,950 changes: 1,950 additions & 0 deletions .history/tests/test_tables_20230818143310.py

Large diffs are not rendered by default.

1,950 changes: 1,950 additions & 0 deletions .history/tests/test_tables_20230818143349.py

Large diffs are not rendered by default.

1,950 changes: 1,950 additions & 0 deletions .history/tests/test_tables_20230818143405.py

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1938,3 +1938,13 @@ def test_no_records():
empty_table = Table()
records_empty_table = Table().from_records([])
assert empty_table == records_empty_table

def test_column_index(table):
"""Test that Tables returns right index number"""
index = table.column_index('letter')
assert index == 0

def test_num_columns(table):
"""Test that Tables returns right number of columns"""
number = table.num_columns
assert number == 3

0 comments on commit c281ceb

Please sign in to comment.