diff options
author | madt1m <blackjuniper@protonmail.com> | 2018-06-13 11:56:14 +0200 |
---|---|---|
committer | madt1m <blackjuniper@protonmail.com> | 2018-06-13 11:56:14 +0200 |
commit | 773c9535146991af38f954cb4d3b0ead9d7485c5 (patch) | |
tree | 0530549e9a9725401d0a26a663b741762448923f /test | |
parent | b6fd9b4484d8d13dfd98a900a9b97549c8f3e52f (diff) | |
download | mitmproxy-773c9535146991af38f954cb4d3b0ead9d7485c5.tar.gz mitmproxy-773c9535146991af38f954cb4d3b0ead9d7485c5.tar.bz2 mitmproxy-773c9535146991af38f954cb4d3b0ead9d7485c5.zip |
View API slightly extended; codebase cleaned in some points
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_command.py | 2 | ||||
-rw-r--r-- | test/mitmproxy/test_types.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/test_command.py b/test/mitmproxy/test_command.py index 029dbafd..d9dcf5f9 100644 --- a/test/mitmproxy/test_command.py +++ b/test/mitmproxy/test_command.py @@ -313,7 +313,7 @@ def test_typename(): class DummyConsole: - @command.command("view.resolve") + @command.command("view.flows.resolve") def resolve(self, spec: str) -> typing.Sequence[flow.Flow]: n = int(spec) return [tflow.tflow(resp=True)] * n diff --git a/test/mitmproxy/test_types.py b/test/mitmproxy/test_types.py index 35ff3241..571985fb 100644 --- a/test/mitmproxy/test_types.py +++ b/test/mitmproxy/test_types.py @@ -146,7 +146,7 @@ def test_strseq(): class DummyConsole: - @command.command("view.resolve") + @command.command("view.flows.resolve") def resolve(self, spec: str) -> typing.Sequence[flow.Flow]: if spec == "err": raise mitmproxy.exceptions.CommandError() |