1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-17 22:01:49 -05:00

Fixed unit tests

Had to initialize the watchlist and seenlist with a config dict.
This commit is contained in:
Hemna 2021-10-21 09:20:24 -04:00
parent 89701c8a70
commit b0d25a76f7

View File

@ -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):