mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
remove noop code
This commit is contained in:
parent
6746cf5f54
commit
4767474d4b
@ -6,21 +6,6 @@ if os.name == "nt":
|
||||
import libmproxy.console.help as help
|
||||
|
||||
|
||||
class DummyLoop:
|
||||
|
||||
def __init__(self):
|
||||
self.widget = None
|
||||
|
||||
|
||||
class DummyMaster:
|
||||
|
||||
def __init__(self):
|
||||
self.loop = DummyLoop()
|
||||
|
||||
def make_view(self):
|
||||
pass
|
||||
|
||||
|
||||
class TestHelp:
|
||||
|
||||
def test_helptext(self):
|
||||
@ -28,7 +13,6 @@ class TestHelp:
|
||||
assert h.helptext()
|
||||
|
||||
def test_keypress(self):
|
||||
DummyMaster()
|
||||
h = help.HelpView([1, 2, 3])
|
||||
assert not h.keypress((0, 0), "q")
|
||||
assert not h.keypress((0, 0), "?")
|
||||
|
@ -209,7 +209,6 @@ class TestMatching:
|
||||
|
||||
def test_method(self):
|
||||
q = self.req()
|
||||
self.resp()
|
||||
assert self.q("~m get", q)
|
||||
assert not self.q("~m post", q)
|
||||
|
||||
@ -218,7 +217,6 @@ class TestMatching:
|
||||
|
||||
def test_domain(self):
|
||||
q = self.req()
|
||||
self.resp()
|
||||
assert self.q("~d host", q)
|
||||
assert not self.q("~d none", q)
|
||||
|
||||
|
@ -532,7 +532,6 @@ class TestState:
|
||||
assert c.flow_count() == 2
|
||||
assert c.active_flow_count() == 1
|
||||
|
||||
HTTPResponse.wrap(netlib.tutils.tresp())
|
||||
assert not c.update_flow(None)
|
||||
assert c.active_flow_count() == 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user