padelt / temper-python

libusb/PyUSB-based driver to read TEMPer USB HID devices (USB ID 0c45:7401) and serve as a NetSNMP passpersist module
Other
182 stars 76 forks source link

Add pytests #98

Closed davet2001 closed 3 years ago

davet2001 commented 3 years ago

Initial PR to create pytests.

This is to allow verifying that future changes to layout #97 don't break functionality of existing sensors.

Hoping to cover each of the sensor types mentioned in temper.py.

davet2001 commented 3 years ago

I think all of the sensor types are covered now. Code coverage only 67% so far, but should enable validation of future changes.

davet2001 commented 3 years ago

Should be ready to merge now if you are happy with this.