mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Fix test_dumper.py - Dumper constructor
This commit is contained in:
parent
ade136dc4d
commit
312f922316
@ -156,7 +156,7 @@ class TestContentView:
|
||||
def test_tcp():
|
||||
sio = io.StringIO()
|
||||
sio_err = io.StringIO()
|
||||
d = dumper.Dumper(sio)
|
||||
d = dumper.Dumper(sio, sio_err)
|
||||
with taddons.context(d) as ctx:
|
||||
ctx.configure(d, flow_detail=3, showhost=True)
|
||||
f = tflow.ttcpflow()
|
||||
@ -172,7 +172,7 @@ def test_tcp():
|
||||
def test_websocket():
|
||||
sio = io.StringIO()
|
||||
sio_err = io.StringIO()
|
||||
d = dumper.Dumper(sio)
|
||||
d = dumper.Dumper(sio, sio_err)
|
||||
with taddons.context(d) as ctx:
|
||||
ctx.configure(d, flow_detail=3, showhost=True)
|
||||
f = tflow.twebsocketflow()
|
||||
|
Loading…
Reference in New Issue
Block a user