fix names

This commit is contained in:
Matthias 2021-09-28 23:45:32 +02:00
parent ae66442156
commit cd9d3cdcb6
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -34,9 +34,9 @@ class ActionPluginTests(TestCase):
def test_action_name(self): def test_action_name(self):
"""check the name definition possibilities""" """check the name definition possibilities"""
self.assertEqual(self.plugin.plugin_name(), '') self.assertEqual(self.plugin.action_name(), '')
self.assertEqual(self.action_plugin.plugin_name(), 'abc123') self.assertEqual(self.action_plugin.action_name(), 'abc123')
self.assertEqual(self.action_name.plugin_name(), 'Aplugin') self.assertEqual(self.action_name.action_name(), 'Aplugin')
def test_function(self): def test_function(self):
"""check functions""" """check functions"""
@ -51,10 +51,10 @@ class ActionPluginTests(TestCase):
}) })
# overriden functions # overriden functions
self.assertEqual(self.plugin.perform_action(), self.ACTION_RETURN + 'action') self.assertEqual(self.action_plugin.perform_action(), self.ACTION_RETURN + 'action')
self.assertEqual(self.plugin.get_result(), self.ACTION_RETURN + 'result') self.assertEqual(self.action_plugin.get_result(), self.ACTION_RETURN + 'result')
self.assertIsNone(self.plugin.get_info(), self.ACTION_RETURN + 'info') self.assertIsNone(self.action_plugin.get_info(), self.ACTION_RETURN + 'info')
self.assertEqual(self.plugin.get_response(), { self.assertEqual(self.action_plugin.get_response(), {
"action": 'abc123', "action": 'abc123',
"result": self.ACTION_RETURN + 'result', "result": self.ACTION_RETURN + 'result',
"info": self.ACTION_RETURN + 'info', "info": self.ACTION_RETURN + 'info',