You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from unittest.mock import patch
|
|
|
|
|
|
def get_plugin_patcher(plugin_class):
|
|
"""Return a context manager to patch a Plugin init."""
|
|
return patch.object(plugin_class, "__init__", lambda bot: None)
|