mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
addons.view: we no longer have a None order state
This bumps coverage back to 100% for addons
This commit is contained in:
parent
b19fefd173
commit
2153c337e0
@ -109,7 +109,7 @@ class View(collections.Sequence):
|
||||
|
||||
self.default_order = OrderRequestStart(self)
|
||||
self.orders = dict(
|
||||
time = self.default_order,
|
||||
time = OrderRequestStart(self),
|
||||
method = OrderRequestMethod(self),
|
||||
url = OrderRequestURL(self),
|
||||
size = OrderKeySize(self),
|
||||
@ -310,9 +310,6 @@ class View(collections.Sequence):
|
||||
)
|
||||
self.set_filter(filt)
|
||||
if "console_order" in updated:
|
||||
if opts.console_order is None:
|
||||
self.set_order(self.default_order)
|
||||
else:
|
||||
if opts.console_order not in self.orders:
|
||||
raise exceptions.OptionsError(
|
||||
"Unknown flow order: %s" % opts.console_order
|
||||
|
Loading…
Reference in New Issue
Block a user