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
1 changed files with 2 additions and 0 deletions

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