mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 19:25:35 -05:00
Don't add plugin to manager twice (#1064)
* Prevent Python plugins from being added to PluginManager twice
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user