diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-08-31 15:22:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 15:22:07 +0200 |
commit | 7bd930693e809af7c0fc89aa0edb28975f30e44a (patch) | |
tree | 94a1363e572d5b2564fab9e3ab784ebfb42975ef /test | |
parent | 9942f782177b83d57da1d579bd930209e99002d3 (diff) | |
parent | a98dd1642cb7a6357f4502882d4e11d48cbf7e1f (diff) | |
download | mitmproxy-7bd930693e809af7c0fc89aa0edb28975f30e44a.tar.gz mitmproxy-7bd930693e809af7c0fc89aa0edb28975f30e44a.tar.bz2 mitmproxy-7bd930693e809af7c0fc89aa0edb28975f30e44a.zip |
Merge pull request #2551 from MatthewShao/static-viewer
[web] Add settings.json to 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) |