| Commit message (Collapse) | Author | Files | Lines |
|
* Remove the __main__ blocks as the tests should not be executable by
themselves.
* Use absltest everywhere instead of a mixture of unittest/absltest (via
parameterized).
* Only modify import path once.
* Cleanup pylint warnings, by disabling those that are not useful, and
fixing those that are.
|
|
This would have caught the bug fixed with the previous commit, which is a
strict improvement.
|
|
This test was actually only testing the CRC CCITT implementation now that
otultraeasy uses construct.
|
|
This removes the wholly complicated _Packet() object and replace it with
more readable construct.
Unfortunately this appears to reduce performance because of the serial
stream buffering, needed to calculate the checksum. It's unfortunate, but
it at least avoids a significant amount of custom code.
|
|
Since I've increased the minimum Python version to 3.4, mock is now
available within Python. And since I already used absl-py parameterized for
test_common, make use of it to avoid boilerplate.
|
|
This makes it easier to figure out which files represent drivers, and which
ones are per-vendor support modules.
|
|
Most glucometers have *some* sort of checksum, so there is no reason to
implement this on a per-driver basis.
|
|
The same CRC-CCITT function is used in Verio 2015 devices, so prepare to
reuse it by moving it to the common module.
|
|
The driver is fully functional but requires proper documentation and
testing.
|