From 92a5076bd01b71e8ed709901d63de9ee37385c3b Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 15 Jul 2016 14:59:48 +1200 Subject: [PATCH] Adjust concurrent tests for start method --- examples/stub.py | 2 -- test/mitmproxy/script/test_concurrent.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/stub.py b/examples/stub.py index 7de4012a9..e5b4a39ab 100644 --- a/examples/stub.py +++ b/examples/stub.py @@ -4,7 +4,6 @@ import mitmproxy """ - def start(): """ Called once on script startup before any other events @@ -12,7 +11,6 @@ def start(): mitmproxy.ctx.log("start") - def configure(options): """ Called once on script startup before any other events, and whenever options changes. diff --git a/test/mitmproxy/script/test_concurrent.py b/test/mitmproxy/script/test_concurrent.py index 92d1153b9..080746e89 100644 --- a/test/mitmproxy/script/test_concurrent.py +++ b/test/mitmproxy/script/test_concurrent.py @@ -42,5 +42,5 @@ class TestConcurrent(mastertest.MasterTest): ) ) with m.handlecontext(): - sc.configure(options.Options()) + sc.start() assert "decorator not supported" in m.event_log[0][1]