Skip to content

Commit 4531c9b

Browse files
committed
Fix import ordering and whitespace issues.
Line-length set to maximum 96.
1 parent 17df7b2 commit 4531c9b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

test/test_time.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import unittest
2-
from unittest.mock import patch
31
import time
2+
import unittest
43
from datetime import datetime
4+
from unittest.mock import patch
55

66
import canopen
77
import canopen.timestamp
@@ -16,7 +16,9 @@ def test_time_producer(self):
1616
producer = canopen.timestamp.TimeProducer(network)
1717

1818
# Test that the epoch is correct
19-
epoch = datetime.strptime("1984-01-01 00:00:00 +0000", "%Y-%m-%d %H:%M:%S %z").timestamp()
19+
epoch = datetime.strptime(
20+
"1984-01-01 00:00:00 +0000", "%Y-%m-%d %H:%M:%S %z"
21+
).timestamp()
2022
self.assertEqual(int(epoch), canopen.timestamp.OFFSET)
2123

2224
current = time.time()
@@ -45,5 +47,6 @@ def test_time_producer(self):
4547

4648
network.disconnect()
4749

50+
4851
if __name__ == "__main__":
4952
unittest.main()

0 commit comments

Comments
 (0)