mirror of
https://github.com/hemna/aprsd-slack-plugin.git
synced 2024-12-04 06:03:11 -05:00
fixed tests after refactoring
This commit is contained in:
parent
9b4f4b5a28
commit
d5d76a1a02
@ -1,9 +1,14 @@
|
||||
CHANGES
|
||||
=======
|
||||
|
||||
* prep for release
|
||||
* new updated location plugin
|
||||
* Updated slack formatting
|
||||
|
||||
v1.0.4
|
||||
------
|
||||
|
||||
* Updates for v1.0.4 release
|
||||
* Added Makefile, pre-commit. Also update for 1.5.0
|
||||
|
||||
v1.0.3
|
||||
|
@ -1,7 +1,7 @@
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from aprsd_slack_plugin import aprsd_slack_plugin as slack_plugin
|
||||
from aprsd_slack_plugin import location_plugin
|
||||
|
||||
if sys.version_info >= (3, 2):
|
||||
from unittest import mock
|
||||
@ -10,7 +10,7 @@ else:
|
||||
|
||||
|
||||
class TestPlugin(unittest.TestCase):
|
||||
@mock.patch.object(slack_plugin.SlackCommandPlugin, "command")
|
||||
@mock.patch.object(location_plugin.SlackLocationPlugin, "command")
|
||||
def test_plugin(self, mock_command):
|
||||
mock_command.return_value = ""
|
||||
|
||||
@ -18,5 +18,5 @@ class TestPlugin(unittest.TestCase):
|
||||
"slack": {"signing_secret": "something", "bot_token": "sometoken", "channel": "hemna"},
|
||||
}
|
||||
|
||||
p = slack_plugin.SlackCommandPlugin(config)
|
||||
p = location_plugin.SlackLocationPlugin(config)
|
||||
p.command("KM6LYW", "location", 1)
|
||||
|
Loading…
Reference in New Issue
Block a user