adafruit / adabot

Adabot is our robot friend who helps Adafruit online
MIT License
13 stars 27 forks source link

Fix Output File Generation For Reports #231

Closed sommersoft closed 3 years ago

sommersoft commented 3 years ago

@dherrada brought it to my attention that my last PR containing changes to allow/add tests, broke output file generation for reports.

The problem was the use of global scoped variables, that was broken by adding a main function.

This fix does what I should've done from the beginning, and utilizes logging to allow for multiple outputs.

Also added tests for output file generation.