diff options
author | Aldo Cortesi <aldo@corte.si> | 2018-04-23 11:05:58 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2018-04-23 19:16:33 +1200 |
commit | 95e690ba31db9cb35eaa7e22ecebbe06ea8e2044 (patch) | |
tree | 62f5a3ea58ef5a2b2f39b092df97fcd5b6d9f16d /test/pathod/test_pathoc_cmdline.py | |
parent | 0ba10b61090274a1f2ca70a8fb1d68830cb44607 (diff) | |
download | mitmproxy-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_pathoc_cmdline.py')
-rw-r--r-- | test/pathod/test_pathoc_cmdline.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/pathod/test_pathoc_cmdline.py b/test/pathod/test_pathoc_cmdline.py index 7bc76ace..fecebe3d 100644 --- a/test/pathod/test_pathoc_cmdline.py +++ b/test/pathod/test_pathoc_cmdline.py @@ -4,11 +4,9 @@ from unittest import mock from pathod import pathoc_cmdline as cmdline -from mitmproxy.test import tutils - @mock.patch("argparse.ArgumentParser.error") -def test_pathoc(perror): +def test_pathoc(perror, tdata): assert cmdline.args_pathoc(["pathoc", "foo.com", "get:/"]) s = io.StringIO() with pytest.raises(SystemExit): @@ -53,7 +51,7 @@ def test_pathoc(perror): [ "pathoc", "foo.com:8888", - tutils.test_data.path("pathod/data/request") + tdata.path("pathod/data/request") ] ) assert len(list(a.requests)) == 1 |