aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-02-07 19:33:36 +0100
committerMaximilian Hils <git@maximilianhils.com>2015-02-07 19:33:36 +0100
commit5d568708188086c6deb747bee4365552483b6807 (patch)
tree6e15582f5e1454a4916bbcf0b68a14d3c5f9de3d /test/test_flow.py
parent9a32193005ec4490307b074e6e9237a74492ae3b (diff)
downloadmitmproxy-5d568708188086c6deb747bee4365552483b6807.tar.gz
mitmproxy-5d568708188086c6deb747bee4365552483b6807.tar.bz2
mitmproxy-5d568708188086c6deb747bee4365552483b6807.zip
disable replay from ui for live flows
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index d11d47fa..6d77f075 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -666,6 +666,9 @@ class TestFlowMaster:
f.intercepted = True
assert "intercepting" in fm.replay_request(f)
+ f.live = True
+ assert "live" in fm.replay_request(f, run_scripthooks=True)
+
def test_script_reqerr(self):
s = flow.State()
fm = flow.FlowMaster(None, s)