aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/proxy/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'test/mitmproxy/proxy/protocol')
-rw-r--r--test/mitmproxy/proxy/protocol/__init__.py0
-rw-r--r--test/mitmproxy/proxy/protocol/test_http1.py2
-rw-r--r--test/mitmproxy/proxy/protocol/test_http2.py6
-rw-r--r--test/mitmproxy/proxy/protocol/test_websocket.py10
4 files changed, 9 insertions, 9 deletions
diff --git a/test/mitmproxy/proxy/protocol/__init__.py b/test/mitmproxy/proxy/protocol/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/mitmproxy/proxy/protocol/__init__.py
diff --git a/test/mitmproxy/proxy/protocol/test_http1.py b/test/mitmproxy/proxy/protocol/test_http1.py
index 44a9effa..07cd7dcc 100644
--- a/test/mitmproxy/proxy/protocol/test_http1.py
+++ b/test/mitmproxy/proxy/protocol/test_http1.py
@@ -2,7 +2,7 @@ from mitmproxy.test import tflow
from mitmproxy.net.http import http1
from mitmproxy.net.tcp import TCPClient
from mitmproxy.test.tutils import treq
-from .. import tservers
+from ... import tservers
class TestHTTPFlow:
diff --git a/test/mitmproxy/proxy/protocol/test_http2.py b/test/mitmproxy/proxy/protocol/test_http2.py
index 8e8ba644..f5d9259d 100644
--- a/test/mitmproxy/proxy/protocol/test_http2.py
+++ b/test/mitmproxy/proxy/protocol/test_http2.py
@@ -11,12 +11,12 @@ from mitmproxy import options
from mitmproxy.proxy.config import ProxyConfig
import mitmproxy.net
-from ...mitmproxy.net import tservers as net_tservers
+from ....mitmproxy.net import tservers as net_tservers
from mitmproxy import exceptions
from mitmproxy.net.http import http1, http2
-from .. import tservers
-from ...conftest import requires_alpn
+from ... import tservers
+from ....conftest import requires_alpn
import logging
logging.getLogger("hyper.packages.hpack.hpack").setLevel(logging.WARNING)
diff --git a/test/mitmproxy/proxy/protocol/test_websocket.py b/test/mitmproxy/proxy/protocol/test_websocket.py
index 73ee8b35..4ea01d34 100644
--- a/test/mitmproxy/proxy/protocol/test_websocket.py
+++ b/test/mitmproxy/proxy/protocol/test_websocket.py
@@ -9,17 +9,17 @@ from mitmproxy.http import HTTPFlow
from mitmproxy.websocket import WebSocketFlow
from mitmproxy.proxy.config import ProxyConfig
-import mitmproxy.net
+from mitmproxy.net import tcp
from mitmproxy.net import http
-from ...mitmproxy.net import tservers as net_tservers
-from .. import tservers
+from ....mitmproxy.net import tservers as net_tservers
+from ... import tservers
from mitmproxy.net import websockets
class _WebSocketServerBase(net_tservers.ServerTestBase):
- class handler(mitmproxy.net.tcp.BaseHandler):
+ class handler(tcp.BaseHandler):
def handle(self):
try:
@@ -80,7 +80,7 @@ class _WebSocketTestBase:
self.server.server.handle_websockets = self.handle_websockets
def _setup_connection(self):
- client = mitmproxy.net.tcp.TCPClient(("127.0.0.1", self.proxy.port))
+ client = tcp.TCPClient(("127.0.0.1", self.proxy.port))
client.connect()
request = http.Request(