Fixed test to use the new method to get the lexer

This commit is contained in:
Henrique 2019-11-12 22:08:10 -05:00
parent a9596cabe3
commit 561d6d91d1
1 changed files with 2 additions and 2 deletions

View File

@ -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]