From 72fa550250dcaef2c4badfe9aa755464aafcd659 Mon Sep 17 00:00:00 2001 From: Hemna Date: Thu, 14 Jan 2021 14:36:36 -0500 Subject: [PATCH 1/2] Removed flask code --- aprsd/main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aprsd/main.py b/aprsd/main.py index 025206a..60dd93b 100644 --- a/aprsd/main.py +++ b/aprsd/main.py @@ -32,7 +32,7 @@ import time # local imports here import aprsd -from aprsd import client, email, flask, messaging, plugin, threads, utils +from aprsd import client, email, messaging, plugin, threads, utils import aprslib from aprslib.exceptions import LoginError import click @@ -456,10 +456,6 @@ def server( messaging.MsgTrack().restart() - if stats_server: - app = flask.init_flask(config) - app.run(host="0.0.0.0", port=5001) - cntr = 0 while not server_event.is_set(): # to keep the log noise down From 74be4f853ed4b4e9705445a22ae281614a5d485c Mon Sep 17 00:00:00 2001 From: Hemna Date: Thu, 14 Jan 2021 14:40:45 -0500 Subject: [PATCH 2/2] Fixed the queryPlugin unit test --- tests/test_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index cbe532c..a6c0c56 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -56,7 +56,7 @@ class TestPlugin(unittest.TestCase): message = "?4" query = query_plugin.QueryPlugin(self.config) - expected = "Pending messages (0)" + expected = "No pending msgs to resend" actual = query.run(self.fromcall, message, self.ack) mock_restart.assert_not_called() self.assertEqual(expected, actual)