mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Add tests for dump_dicts in optmanager.py.
This commit is contained in:
parent
aabc78350a
commit
03bb0a09b9
@ -17,7 +17,6 @@ from mitmproxy import http
|
|||||||
from mitmproxy import io
|
from mitmproxy import io
|
||||||
from mitmproxy import log
|
from mitmproxy import log
|
||||||
from mitmproxy import version
|
from mitmproxy import version
|
||||||
from mitmproxy import options
|
|
||||||
from mitmproxy import optmanager
|
from mitmproxy import optmanager
|
||||||
import mitmproxy.tools.web.master # noqa
|
import mitmproxy.tools.web.master # noqa
|
||||||
|
|
||||||
|
@ -334,6 +334,11 @@ def test_dump_defaults():
|
|||||||
assert optmanager.dump_defaults(o)
|
assert optmanager.dump_defaults(o)
|
||||||
|
|
||||||
|
|
||||||
|
def test_dump_dicts():
|
||||||
|
o = options.Options()
|
||||||
|
assert optmanager.dump_dicts(o)
|
||||||
|
|
||||||
|
|
||||||
class TTypes(optmanager.OptManager):
|
class TTypes(optmanager.OptManager):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
Loading…
Reference in New Issue
Block a user