mirror of
https://github.com/craigerl/aprsd.git
synced 2024-11-18 06:11:49 -05:00
Fixed unit tests
Had to initialize the watchlist and seenlist with a config dict.
This commit is contained in:
parent
89701c8a70
commit
b0d25a76f7
@ -24,6 +24,8 @@ class TestPlugin(unittest.TestCase):
|
|||||||
self.config["aprs"]["login"] = fake.FAKE_TO_CALLSIGN
|
self.config["aprs"]["login"] = fake.FAKE_TO_CALLSIGN
|
||||||
# Inintialize the stats object with the config
|
# Inintialize the stats object with the config
|
||||||
stats.APRSDStats(self.config)
|
stats.APRSDStats(self.config)
|
||||||
|
packets.WatchList(config=self.config)
|
||||||
|
packets.SeenList(config=self.config)
|
||||||
|
|
||||||
@mock.patch.object(fake.FakeBaseNoThreadsPlugin, "process")
|
@mock.patch.object(fake.FakeBaseNoThreadsPlugin, "process")
|
||||||
def test_base_plugin_no_threads(self, mock_process):
|
def test_base_plugin_no_threads(self, mock_process):
|
||||||
|
Loading…
Reference in New Issue
Block a user