diff options
Diffstat (limited to 'mitmproxy/test/taddons.py')
-rw-r--r-- | mitmproxy/test/taddons.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mitmproxy/test/taddons.py b/mitmproxy/test/taddons.py index 39ebb2e6..ea9534af 100644 --- a/mitmproxy/test/taddons.py +++ b/mitmproxy/test/taddons.py @@ -120,3 +120,9 @@ class context: self.configure(sc) self.master.addons.invoke_addon(sc, "tick") return sc.addons[0] if sc.addons else None + + def invoke(self, addon, event, *args, **kwargs): + """ + Recursively invoke an event on an addon and all its children. + """ + return self.master.addons.invoke_addon(addon, event, *args, **kwargs) |