data-8 / datascience

A Python library for introductory data science
https://www.data8.org/datascience/
BSD 3-Clause "New" or "Revised" License
626 stars 295 forks source link

testing coverage and cleanup updates tables.py #576

Closed amoghkokari closed 1 year ago

amoghkokari commented 1 year ago

removing depreciated columns_lables. It is not being used anywhere in the code. Should help in boosting the code coverage.

refactoring the following code to avoid redundancy

if not hasattr(formatter, 'format_column'): if callable(formatter): formatter = _formats.FunctionFormatter(formatter) raise Exception('Expected Formatter or function: ' + str(formatter))

[ ] Wrote test for feature [ ] Added changes to CHANGELOG.md [ ] Bumped version number (delete if unneeded)

Changes proposed:

coveralls commented 1 year ago

Coverage Status

Coverage: 92.053% (+0.07%) from 91.986% when pulling 484a37a622dd0e51b3f99f1bab1de82bd0981d5f on amoghkokari:patch-1 into 8d3fb1e0791b9e072c741b6d9c8efc98d554159e on data-8:master.