mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Fix unit tests
This commit is contained in:
parent
08bb076533
commit
a1c21d9774
@ -19,12 +19,12 @@ class DummyMaster:
|
||||
|
||||
class TestHelp:
|
||||
def test_helptext(self):
|
||||
h = help.HelpView(None, "foo", None)
|
||||
h = help.HelpView(None)
|
||||
assert h.helptext()
|
||||
|
||||
def test_keypress(self):
|
||||
master = DummyMaster()
|
||||
h = help.HelpView(master, "foo", [1, 2, 3])
|
||||
h = help.HelpView([1, 2, 3])
|
||||
assert not h.keypress((0, 0), "q")
|
||||
assert not h.keypress((0, 0), "?")
|
||||
assert h.keypress((0, 0), "o") == "o"
|
||||
|
Loading…
Reference in New Issue
Block a user