diff options
author | Matthew Shao <me@matshao.com> | 2017-08-30 21:15:04 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-08-30 21:15:04 +0800 |
commit | a98dd1642cb7a6357f4502882d4e11d48cbf7e1f (patch) | |
tree | 94a1363e572d5b2564fab9e3ab784ebfb42975ef /test | |
parent | 0647d622a4edeb3ce258736031ccb8052eadc271 (diff) | |
download | mitmproxy-a98dd1642cb7a6357f4502882d4e11d48cbf7e1f.tar.gz mitmproxy-a98dd1642cb7a6357f4502882d4e11d48cbf7e1f.tar.bz2 mitmproxy-a98dd1642cb7a6357f4502882d4e11d48cbf7e1f.zip |
[web] Update test for static viewer.
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/tools/web/test_static_viewer.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mitmproxy/tools/web/test_static_viewer.py b/test/mitmproxy/tools/web/test_static_viewer.py index 5b7ddfff..cfe6cd7f 100644 --- a/test/mitmproxy/tools/web/test_static_viewer.py +++ b/test/mitmproxy/tools/web/test_static_viewer.py @@ -26,6 +26,12 @@ def test_save_filter_help(tmpdir): assert f.read() == json.dumps(dict(commands=flowfilter.help)) +def test_save_settings(tmpdir): + static_viewer.save_settings(tmpdir) + f = tmpdir.join('/settings.json') + assert f.check(file=1) + + def test_save_flows(tmpdir): flows = [tflow.tflow(req=True, resp=None), tflow.tflow(req=True, resp=True)] static_viewer.save_flows(tmpdir, flows) |