Add unit tests for TL module and fix some bugs#7
Add unit tests for TL module and fix some bugs#7lds56 wants to merge 2 commits intosuperchromia:masterfrom
Conversation
|
Dude, you are the boss! Than you for the effort!! I'm personally not experienced in python testing so I appreciate it a lot :)
|
|
I'm happy as well for hearing that it can be of help 😊 |
There was a problem hiding this comment.
The original statement caused nothing wrong actually. But when I printed os.path.dirname(__file__) out I got nothing but a blank line. Therefore, I appended os.path.abspath for ensuring loading json correctly.
Changes
Issue
I choose nose as the test tool and it works well with python2.7. However, using nose with python3 can be a little troublesome. Of course, the unit tests themselves are okay for either py2 or py3 so you can run the tests in other way you like.