mirror of
https://github.com/craigerl/aprsd.git
synced 2025-07-02 00:45:19 -04:00
Fixed aprsd-dev
This patch fixes running the aprsd-dev plugin development tool. It currently only works for message based plugins.
This commit is contained in:
parent
691b18fd1c
commit
d71b0df314
@ -187,9 +187,11 @@ def test_plugin(
|
|||||||
client.Client(config)
|
client.Client(config)
|
||||||
|
|
||||||
pm = plugin.PluginManager(config)
|
pm = plugin.PluginManager(config)
|
||||||
obj = pm._create_class(plugin_path, plugin.APRSDPluginBase, config=config)
|
obj = pm._create_class(plugin_path, plugin.APRSDMessagePluginBase, config=config)
|
||||||
|
|
||||||
reply = obj.run(fromcall, message, 1)
|
packet = {"from": fromcall, "message_text": message, "msgNo": 1}
|
||||||
|
|
||||||
|
reply = obj.run(packet)
|
||||||
LOG.info("Result = '{}'".format(reply))
|
LOG.info("Result = '{}'".format(reply))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user