Commit 25769b25 authored by Nitanshu's avatar Nitanshu Committed by Guillaume Binet

test.py: Fix invalid variable name (#1241)

parent b9fae4a7
......@@ -477,7 +477,7 @@ class TestBot(object):
plugin = self.bot.plugin_manager.get_plugin_obj_by_name(plugin_name)
if plugin is None:
raise Exception(f'"{PluginName}" is not loaded.')
raise Exception(f'"{plugin_name}" is not loaded.')
for field, mock_obj in mock_dict.items():
if not hasattr(plugin, field):
raise ValueError(f'No property/attribute named "{field}" attached.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment