Don't add plugin to manager twice (#1064)

* Prevent Python plugins from being added to PluginManager twice
This commit is contained in:
Jeff Glass
2022-12-21 12:10:01 -06:00
committed by GitHub
parent c0f36aa047
commit 059dbc88c9
2 changed files with 1 additions and 2 deletions

View File

@@ -164,7 +164,7 @@ class TestPlugin(PyScriptTest):
# EXPECT it to log the correct logs for the events it intercepts
log_lines = self.console.log.lines
for method in hooks_available:
assert f"{method} called" in log_lines
assert log_lines.count(f"{method} called") == 1
# EXPECT it to NOT be called (hence not log anything) the events that happen
# before it's ready, hence is not called