aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/test/taddons.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/test/taddons.py')
-rw-r--r--mitmproxy/test/taddons.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mitmproxy/test/taddons.py b/mitmproxy/test/taddons.py
index 49142871..6160746a 100644
--- a/mitmproxy/test/taddons.py
+++ b/mitmproxy/test/taddons.py
@@ -1,12 +1,11 @@
-import sys
import contextlib
+import sys
import mitmproxy.master
import mitmproxy.options
-from mitmproxy import proxy
from mitmproxy import addonmanager
-from mitmproxy import eventsequence
from mitmproxy import command
+from mitmproxy import eventsequence
from mitmproxy.addons import script
@@ -59,10 +58,11 @@ class context:
handlers can run as they would within mitmproxy. The context also
provides a number of helper methods for common testing scenarios.
"""
- def __init__(self, master = None, options = None):
+
+ def __init__(self, master=None, options=None):
options = options or mitmproxy.options.Options()
self.master = master or RecordingMaster(
- options, proxy.DummyServer(options)
+ options
)
self.options = self.master.options
self.wrapped = None