diff options
author | Aldo Cortesi <aldo@corte.si> | 2018-04-26 11:47:07 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 11:47:07 +1200 |
commit | b18e0fa2bcac8b55b1d8325f4a2b1f916e3c0d9b (patch) | |
tree | 332a42ef3dfd28ec0f4496b1f8ae79464f069069 /test/pathod/test_pathod_cmdline.py | |
parent | 5546f0a05ec21db986f0639cee9e89452ba68642 (diff) | |
parent | 95e690ba31db9cb35eaa7e22ecebbe06ea8e2044 (diff) | |
download | mitmproxy-b18e0fa2bcac8b55b1d8325f4a2b1f916e3c0d9b.tar.gz mitmproxy-b18e0fa2bcac8b55b1d8325f4a2b1f916e3c0d9b.tar.bz2 mitmproxy-b18e0fa2bcac8b55b1d8325f4a2b1f916e3c0d9b.zip |
Merge pull request #3071 from cortesi/tickless
asyncio: shift script reloading out of the tick event
Diffstat (limited to 'test/pathod/test_pathod_cmdline.py')
-rw-r--r-- | test/pathod/test_pathod_cmdline.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/pathod/test_pathod_cmdline.py b/test/pathod/test_pathod_cmdline.py index 34baf491..37427179 100644 --- a/test/pathod/test_pathod_cmdline.py +++ b/test/pathod/test_pathod_cmdline.py @@ -2,8 +2,6 @@ from unittest import mock from pathod import pathod_cmdline as cmdline -from mitmproxy.test import tutils - def test_parse_anchor_spec(): assert cmdline.parse_anchor_spec("foo=200") == ("foo", "200") @@ -11,14 +9,14 @@ def test_parse_anchor_spec(): @mock.patch("argparse.ArgumentParser.error") -def test_pathod(perror): +def test_pathod(perror, tdata): assert cmdline.args_pathod(["pathod"]) a = cmdline.args_pathod( [ "pathod", "--cert", - tutils.test_data.path("pathod/data/testkey.pem") + tdata.path("pathod/data/testkey.pem") ] ) assert a.ssl_certs @@ -46,7 +44,7 @@ def test_pathod(perror): [ "pathod", "-a", - "foo=" + tutils.test_data.path("pathod/data/response") + "foo=" + tdata.path("pathod/data/response") ] ) assert a.anchors |