summaryrefslogtreecommitdiffstats
path: root/test/test_otultra2.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-03-16Move tests to be organized within the source directory.Diego Elio Pettenò1-43/+0
This should simplify maintaining the tests in the long run, and allows mypy to more thoroughly check for types.
2020-03-08format code with blackBen1-15/+15
2019-02-08Replace epydoc metadata with SPDX identifiers.Diego Elio Pettenò1-5/+2
Most of the epydoc metadata (author, copyright, email) is duplicate in the package's setup.py or README. These copies are more likely to get out of date, and increase the amount of work to keep them in line. The license information should rather be provided with an SPDX identifier, which is more similar to what the Linux kernel and other projects, such as pyserial, do.
2019-02-08Replace flameeyes.eu with flameeyes.com.Diego Elio Pettenò1-1/+1
Due to EURid threatening to suspend my domain, make sure that the references are updated to point at the right stable domain. This includes changes to the files as well as a mailmap to update the author references in the log.
2018-11-16tests: simplify and cleanup.Diego Elio Pettenò1-10/+3
* 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.
2018-01-01tests: improve code quality by passing the linter.Diego Elio Pettenò1-1/+3
2017-12-28test: use byte constants instead of encoding on the fly.Diego Elio Pettenò1-2/+2
2017-12-28tests: fix OneTouch tests to use Python's own mock, and leverage absl-py.Diego Elio Pettenò1-48/+21
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.
2017-01-16LifeScan devices: move lifescan_common to the support directory.Diego Elio Pettenò1-4/+4
This makes it easier to figure out which files represent drivers, and which ones are per-vendor support modules.
2016-03-02Move the InvalidChecksum exception to the base exceptions module.Diego Elio Pettenò1-1/+1
Most glucometers have *some* sort of checksum, so there is no reason to implement this on a per-driver basis.
2014-01-29otultra2: move checksum function within otultra2 driver.Diego Elio Pettenò1-0/+8
The function is not shared with the Ultra Easy and likely not with other devices either.
2013-09-29Fix style for tests.Diego Elio Pettenò1-32/+31
2013-08-10test_otultra2: factor out setting of returned serial string.Diego Elio Pettenò1-9/+9
2013-08-03Relicense everything under MIT license.Diego Elio Pettenò1-1/+1
There is no reason for me to use GPLv3 now that I'm not using the CRC32-Sick code, so I'll go with the most liberal license out there.
2013-08-03Implement the correct checksum algorithm.Diego Elio Pettenò1-1/+1
Unlike what I though, OneTouch2 does not use CRC32 Sick algorithm, but a very stupid full 16-bit modulo sum of the bytes in the reply. This is very simple and does not require GPLv3 code at all.
2013-08-03Add support for checksum verification for the otultra2 driver.Diego Elio Pettenò1-4/+19
This introduced some changes in the Exception class to simplify the code, and at the same time it adds a module for multiple lifescan drivers to share code (multiple OneTouch protocols share the same checksum for instance).
2013-08-03Update function names to follow PEP8.Diego Elio Pettenò1-4/+4
2013-08-03Add utf-8 encoding specification to all files.Diego Elio Pettenò1-0/+1
2013-08-03test_otultra2: add header.Diego Elio Pettenò1-0/+7