aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/test_pathod_cmdline.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-04-23 11:05:58 +1200
committerAldo Cortesi <aldo@nullcube.com>2018-04-23 19:16:33 +1200
commit95e690ba31db9cb35eaa7e22ecebbe06ea8e2044 (patch)
tree62f5a3ea58ef5a2b2f39b092df97fcd5b6d9f16d /test/pathod/test_pathod_cmdline.py
parent0ba10b61090274a1f2ca70a8fb1d68830cb44607 (diff)
downloadmitmproxy-95e690ba31db9cb35eaa7e22ecebbe06ea8e2044.tar.gz
mitmproxy-95e690ba31db9cb35eaa7e22ecebbe06ea8e2044.tar.bz2
mitmproxy-95e690ba31db9cb35eaa7e22ecebbe06ea8e2044.zip
test: shift test_data out of our public API
Diffstat (limited to 'test/pathod/test_pathod_cmdline.py')
-rw-r--r--test/pathod/test_pathod_cmdline.py8
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