mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Fix unit tests after argparse conversion.
This commit is contained in:
parent
d88d72e50b
commit
a66d018363
@ -1,4 +1,4 @@
|
|||||||
import optparse
|
import argparse
|
||||||
from libmproxy import cmdline
|
from libmproxy import cmdline
|
||||||
import tutils
|
import tutils
|
||||||
|
|
||||||
@ -35,9 +35,9 @@ def test_parse_replace_hook():
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_common():
|
def test_common():
|
||||||
parser = optparse.OptionParser()
|
parser = argparse.ArgumentParser()
|
||||||
cmdline.common_options(parser)
|
cmdline.common_options(parser)
|
||||||
opts, args = parser.parse_args(args=[])
|
opts = parser.parse_args(args=[])
|
||||||
|
|
||||||
assert cmdline.get_common_options(opts)
|
assert cmdline.get_common_options(opts)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user