1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-12 11:26:13 -05:00

fix plugin tests to expect new strings

This commit is contained in:
Craig Lamparter 2021-01-14 11:28:59 -08:00
parent 0b5c9dacf0
commit e7dc537900

View File

@ -44,7 +44,7 @@ class TestPlugin(unittest.TestCase):
message = "?delete"
query = query_plugin.QueryPlugin(self.config)
expected = "Deleted ALL delayed msgs."
expected = "Deleted ALL pending msgs."
actual = query.run(self.fromcall, message, self.ack)
mock_flush.assert_called_once()
self.assertEqual(expected, actual)
@ -53,10 +53,10 @@ class TestPlugin(unittest.TestCase):
def test_query_restart_delayed(self, mock_restart):
track = messaging.MsgTrack()
track.track = {}
message = "?r4"
message = "?4"
query = query_plugin.QueryPlugin(self.config)
expected = "No delayed msgs to resend"
expected = "Pending messages (0)"
actual = query.run(self.fromcall, message, self.ack)
mock_restart.assert_not_called()
self.assertEqual(expected, actual)