diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-09-28 11:38:49 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-09-28 11:38:49 +1200 |
commit | 8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21 (patch) | |
tree | 97bbb135e6c9241d7b79bafec92347150aa2e984 /test/test_pathoc.py | |
parent | 65108ed4290399be7abbc58662cdc6d4f9371142 (diff) | |
download | mitmproxy-8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21.tar.gz mitmproxy-8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21.tar.bz2 mitmproxy-8bb81be2b07b4b93a8ec7c088bf1ff4728fcec21.zip |
Add pathoc -T to ignore timeouts.
Also move -c to -C for consistency.
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r-- | test/test_pathoc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py index e9690dd5..1c64f076 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -24,7 +24,7 @@ class TestDaemon: _, _, _, _, content = c.request("get:/api/info") assert tuple(json.loads(content)["version"]) == version.IVERSION - def tval(self, requests, showreq=False, showresp=False, explain=False, hexdump=False, timeout=None, ignorecodes=None): + def tval(self, requests, showreq=False, showresp=False, explain=False, hexdump=False, timeout=None, ignorecodes=None, ignoretimeout=None): c = pathoc.Pathoc("127.0.0.1", self.d.port) c.connect() if timeout: @@ -38,6 +38,7 @@ class TestDaemon: explain = explain, hexdump = hexdump, ignorecodes = ignorecodes, + ignoretimeout = ignoretimeout, fp = s ) return s.getvalue() |