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_pathod.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_pathod.py')
-rw-r--r-- | test/pathod/test_pathod.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/pathod/test_pathod.py b/test/pathod/test_pathod.py index d6522cb6..246bff3b 100644 --- a/test/pathod/test_pathod.py +++ b/test/pathod/test_pathod.py @@ -5,11 +5,14 @@ import pytest from pathod import pathod from mitmproxy.net import tcp from mitmproxy import exceptions -from mitmproxy.test import tutils +from mitmproxy.utils import data from . import tservers +cdata = data.Data(__name__) + + class TestPathod: def test_logging(self): @@ -57,7 +60,7 @@ class TestNotAfterConnect(tservers.DaemonTests): class TestCustomCert(tservers.DaemonTests): ssl = True ssloptions = dict( - certs=[("*", tutils.test_data.path("pathod/data/testkey.pem"))], + certs=[("*", cdata.path("data/testkey.pem"))], ) def test_connect(self): |