aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/data/addonscripts/addon.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/mitmproxy/data/addonscripts/addon.py')
-rw-r--r--test/mitmproxy/data/addonscripts/addon.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/mitmproxy/data/addonscripts/addon.py b/test/mitmproxy/data/addonscripts/addon.py
index beef2ce7..8c834d82 100644
--- a/test/mitmproxy/data/addonscripts/addon.py
+++ b/test/mitmproxy/data/addonscripts/addon.py
@@ -9,14 +9,16 @@ class Addon:
def load(self, opts):
event_log.append("addonload")
- def configure(self, options, updated):
+ def configure(self, updated):
event_log.append("addonconfigure")
-def configure(options, updated):
- event_log.append("addonconfigure")
+def configure(updated):
+ event_log.append("scriptconfigure")
def load(l):
event_log.append("scriptload")
- l.boot_into(Addon())
+
+
+addons = [Addon()]