Skip to content

Commit 25769b2

Browse files
nvzardgbin
authored andcommitted
test.py: Fix invalid variable name (#1241)
1 parent b9fae4a commit 25769b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errbot/backends/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def inject_mocks(self, plugin_name: str, mock_dict: dict):
477477
plugin = self.bot.plugin_manager.get_plugin_obj_by_name(plugin_name)
478478

479479
if plugin is None:
480-
raise Exception(f'"{PluginName}" is not loaded.')
480+
raise Exception(f'"{plugin_name}" is not loaded.')
481481
for field, mock_obj in mock_dict.items():
482482
if not hasattr(plugin, field):
483483
raise ValueError(f'No property/attribute named "{field}" attached.')

0 commit comments

Comments
 (0)