fixed tests after refactoring

This commit is contained in:
Hemna 2021-06-17 13:32:55 -04:00
parent 9b4f4b5a28
commit d5d76a1a02
2 changed files with 8 additions and 3 deletions

View File

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

View File

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