1
0
mirror of https://github.com/craigerl/aprsd.git synced 2026-06-06 16:14:57 -04:00

Lots of fixes

This commit is contained in:
2021-01-08 15:47:30 -05:00
parent 4c0150dd97
commit 231c15b1af
17 changed files with 258 additions and 155 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
import unittest
@@ -7,7 +6,7 @@ from aprsd import email
if sys.version_info >= (3, 2):
from unittest import mock
else:
import mock
from unittest import mock
class TestMain(unittest.TestCase):
+4 -2
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import unittest
from unittest import mock
@@ -57,7 +56,10 @@ class TestPlugin(unittest.TestCase):
message = "time"
expected = "{} ({}:{} PDT) ({})".format(
cur_time, str(h), str(m).rjust(2, "0"), message.rstrip()
cur_time,
str(h),
str(m).rjust(2, "0"),
message.rstrip(),
)
actual = time_plugin.run(fromcall, message, ack)
self.assertEqual(expected, actual)