aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHenrique <typoon@gmail.com>2019-11-12 22:08:10 -0500
committerHenrique <typoon@gmail.com>2019-11-12 22:08:10 -0500
commit561d6d91d126d644a5183af3deadf9f90e5dfc7f (patch)
tree08449acd77c8d66547776e5acb56b32e9b1f8202 /test
parenta9596cabe34b07ac45df644c00d57bf1116b8c3e (diff)
downloadmitmproxy-561d6d91d126d644a5183af3deadf9f90e5dfc7f.tar.gz
mitmproxy-561d6d91d126d644a5183af3deadf9f90e5dfc7f.tar.bz2
mitmproxy-561d6d91d126d644a5183af3deadf9f90e5dfc7f.zip
Fixed test to use the new method to get the lexer
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/tools/console/test_defaultkeys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/tools/console/test_defaultkeys.py b/test/mitmproxy/tools/console/test_defaultkeys.py
index 52075c84..be8e39f8 100644
--- a/test/mitmproxy/tools/console/test_defaultkeys.py
+++ b/test/mitmproxy/tools/console/test_defaultkeys.py
@@ -6,7 +6,6 @@ from mitmproxy import command
import pytest
-
@pytest.mark.asyncio
async def test_commands_exist():
km = keymap.Keymap(None)
@@ -16,7 +15,8 @@ async def test_commands_exist():
await m.load_flow(tflow())
for binding in km.bindings:
- cmd, *args = command.lexer(binding.command)
+ cmd, *args = command.get_lexer(binding.command)
+
assert cmd in m.commands.commands
cmd_obj = m.commands.commands[cmd]