diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-07-15 14:59:48 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-07-15 15:00:37 +1200 |
commit | 92a5076bd01b71e8ed709901d63de9ee37385c3b (patch) | |
tree | f3f39a3ee4dbf3e816a48a7962d002973fc2de4c | |
parent | 4ba7ce50c6aa7b96325e201f65747a3a6ace1a7a (diff) | |
download | mitmproxy-92a5076bd01b71e8ed709901d63de9ee37385c3b.tar.gz mitmproxy-92a5076bd01b71e8ed709901d63de9ee37385c3b.tar.bz2 mitmproxy-92a5076bd01b71e8ed709901d63de9ee37385c3b.zip |
Adjust concurrent tests for start method
-rw-r--r-- | examples/stub.py | 2 | ||||
-rw-r--r-- | test/mitmproxy/script/test_concurrent.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/examples/stub.py b/examples/stub.py index 7de4012a..e5b4a39a 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 92d1153b..080746e8 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] |