mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
addons.intercept: 100% test coverage
This commit is contained in:
parent
77e6dfe35c
commit
9fc6674151
@ -36,3 +36,8 @@ def test_simple():
|
||||
f = tflow.tflow(resp=False)
|
||||
tctx.cycle(r, f)
|
||||
assert not f.intercepted
|
||||
|
||||
f = tflow.tflow(resp=True)
|
||||
f.reply._state = "handled"
|
||||
r.response(f)
|
||||
assert f.intercepted
|
Loading…
Reference in New Issue
Block a user