From b0d25a76f7f004936374675b7304b0e069a5e1b9 Mon Sep 17 00:00:00 2001 From: Hemna Date: Thu, 21 Oct 2021 09:20:24 -0400 Subject: [PATCH] Fixed unit tests Had to initialize the watchlist and seenlist with a config dict. --- tests/test_plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index df4337e..4082b61 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -24,6 +24,8 @@ class TestPlugin(unittest.TestCase): self.config["aprs"]["login"] = fake.FAKE_TO_CALLSIGN # Inintialize the stats object with the config stats.APRSDStats(self.config) + packets.WatchList(config=self.config) + packets.SeenList(config=self.config) @mock.patch.object(fake.FakeBaseNoThreadsPlugin, "process") def test_base_plugin_no_threads(self, mock_process):