mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-30 13:11:47 +08:00
addons.intercept: 100% test coverage
This commit is contained in:
@@ -36,3 +36,8 @@ def test_simple():
|
|||||||
f = tflow.tflow(resp=False)
|
f = tflow.tflow(resp=False)
|
||||||
tctx.cycle(r, f)
|
tctx.cycle(r, f)
|
||||||
assert not f.intercepted
|
assert not f.intercepted
|
||||||
|
|
||||||
|
f = tflow.tflow(resp=True)
|
||||||
|
f.reply._state = "handled"
|
||||||
|
r.response(f)
|
||||||
|
assert f.intercepted
|
||||||
Reference in New Issue
Block a user