mozilla / active-data-recipes

A repository of various activedata queries and recipes
Mozilla Public License 2.0
9 stars 24 forks source link

Add test_formatter #36

Open nadaa opened 6 years ago

nadaa commented 6 years ago

This to fix issue #23 Add a unittest for formatter.py file.

This is a basic unittest to test the four formatters (table,json,tab,markdown). It could be better if the test data is stored in an external file. Also adding more test cases. Tabformatter only expects the input to be a list, so I didn't include its test. for now