python-tableformatter / tableformatter

Tabular data formatter allowing printing from both arbitrary Iterables of Iterables or Iterables of objects via introspection
https://pypi.org/project/tableformatter/
MIT License
19 stars 3 forks source link

Added set_color_library class method to TableColors #6

Closed tleonhardt closed 6 years ago

tleonhardt commented 6 years ago

This allows the ability to manually override which color library is being used, which is necessary to ensure reproducible unit tests regardless of what color libraries are installed.

Added the first bare-bones template for unit tests with a total of 13 tests based on the two existing examples.

Also, added the basic CI dot-files for integrating with sites like AppVeyor and TravisCI.

codecov-io commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@d32d4e9). Click here to learn what that means. The diff coverage is 51.21%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #6   +/-   ##
=========================================
  Coverage          ?   72.52%           
=========================================
  Files             ?        1           
  Lines             ?      797           
  Branches          ?        0           
=========================================
  Hits              ?      578           
  Misses            ?      219           
  Partials          ?        0
Impacted Files Coverage Δ
tableformatter.py 72.52% <51.21%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d32d4e9...d02de19. Read the comment docs.

tleonhardt commented 6 years ago

I'm going to merge this so I can test out the Travis CI build status badge. We can change anything you aren't happy with later.