diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-01-01 15:54:18 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-01-01 15:54:18 +0100 |
commit | bf2df602e99e722902f8cf1259bb23baf175255d (patch) | |
tree | 3326dd3d65b7261b67f1bb0a1d4f737c9077ef63 /test | |
parent | test_lifescan: rename from test_otultraeasy, and cleanup. (diff) | |
download | glucometerutils-bf2df602e99e722902f8cf1259bb23baf175255d.tar glucometerutils-bf2df602e99e722902f8cf1259bb23baf175255d.tar.gz glucometerutils-bf2df602e99e722902f8cf1259bb23baf175255d.tar.bz2 glucometerutils-bf2df602e99e722902f8cf1259bb23baf175255d.tar.lz glucometerutils-bf2df602e99e722902f8cf1259bb23baf175255d.tar.xz glucometerutils-bf2df602e99e722902f8cf1259bb23baf175255d.tar.zst glucometerutils-bf2df602e99e722902f8cf1259bb23baf175255d.zip |
Diffstat (limited to 'test')
-rw-r--r-- | test/test_common.py | 7 | ||||
-rw-r--r-- | test/test_construct_extras.py | 2 | ||||
-rw-r--r-- | test/test_otultra2.py | 4 |
3 files changed, 7 insertions, 6 deletions
diff --git a/test/test_common.py b/test/test_common.py index 8cff341..4b062ac 100644 --- a/test/test_common.py +++ b/test/test_common.py @@ -3,7 +3,7 @@ __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2013, Diego Elio Pettenò' +__copyright__ = 'Copyright © 2013-2018, Diego Elio Pettenò' __license__ = 'MIT' import datetime @@ -16,7 +16,6 @@ from absl.testing import parameterized sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from glucometerutils import common -from glucometerutils import exceptions class TestGlucoseConversion(parameterized.TestCase): @@ -55,7 +54,7 @@ class TestGlucoseConversion(parameterized.TestCase): class TestGlucoseReading(parameterized.TestCase): - TEST_DATETIME = datetime.datetime(2018, 1 ,1, 0, 30, 45) + TEST_DATETIME = datetime.datetime(2018, 1, 1, 0, 30, 45) def test_minimal(self): reading = common.GlucoseReading(self.TEST_DATETIME, 100) @@ -127,4 +126,4 @@ class TestMeterInfo(parameterized.TestCase): if __name__ == '__main__': - unittest.main() + unittest.main() diff --git a/test/test_construct_extras.py b/test/test_construct_extras.py index faccabf..66da5b7 100644 --- a/test/test_construct_extras.py +++ b/test/test_construct_extras.py @@ -72,4 +72,4 @@ class TestTimestamp(unittest.TestCase): if __name__ == '__main__': - unittest.main() + unittest.main() diff --git a/test/test_otultra2.py b/test/test_otultra2.py index 9f18a85..b421c79 100644 --- a/test/test_otultra2.py +++ b/test/test_otultra2.py @@ -3,7 +3,7 @@ __author__ = 'Diego Elio Pettenò' __email__ = 'flameeyes@flameeyes.eu' -__copyright__ = 'Copyright © 2013-2017, Diego Elio Pettenò' +__copyright__ = 'Copyright © 2013-2018, Diego Elio Pettenò' __license__ = 'MIT' import os @@ -22,10 +22,12 @@ from glucometerutils import exceptions class TestOTUltra2(parameterized.TestCase): def test_checksum(self): + # pylint: disable=protected-access checksum = otultra2._calculate_checksum(b'T') self.assertEqual(0x0054, checksum) def test_checksum_full(self): + # pylint: disable=protected-access checksum = otultra2._calculate_checksum( b'T "SAT","08/03/13","22:12:00 "') self.assertEqual(0x0608, checksum) |