summaryrefslogtreecommitdiffstats
path: root/test/test_common.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* format code with blackBen2020-03-081-63/+68
|
* Replace epydoc metadata with SPDX identifiers.Diego Elio Pettenò2019-02-081-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.
* Replace flameeyes.eu with flameeyes.com.Diego Elio Pettenò2019-02-081-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.
* tests: simplify and cleanup.Diego Elio Pettenò2018-11-161-9/+2
| | | | | | | | | | * 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.
* tests: improve code quality by passing the linter.Diego Elio Pettenò2018-01-011-4/+3
|
* Add more tests to cover the basic translation of objects to strings.Diego Elio Pettenò2017-12-291-0/+74
| | | | | This would have found an extra bug that was pushed unfixed after enum conversion, and two bugs that I did find during the conversion.
* test_common: use absl-py to increase coverage, and simplify.Diego Elio Pettenò2017-12-281-8/+23
| | | | This ensures the tests run independently instead of failing at the first mistake.
* accucheck_reports: fix bug for mg/dL native meters.Diego Elio Pettenò2017-12-281-10/+2
| | | | | This was mixing up the units in the conversion. While fixing the bug, remove the confusing two-parameter form of convert_glucose_unit.
* Use Python3 Enum class for glucose units.Diego Elio Pettenò2017-12-281-7/+7
| | | | This makes the code more idiomatic and less brittle.
* Fix style for tests.Diego Elio Pettenò2013-09-291-28/+23
|
* Relicense everything under MIT license.Diego Elio Pettenò2013-08-031-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.
* Update function names to follow PEP8.Diego Elio Pettenò2013-08-031-8/+8
|
* Add utf-8 encoding specification to all files.Diego Elio Pettenò2013-08-031-0/+1
|
* Add tests for the glucose unit conversion.Diego Elio Pettenò2013-08-031-0/+53