summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/test_common.py7
-rw-r--r--test/test_construct_extras.py2
-rw-r--r--test/test_otultra2.py4
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)