aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_examples.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-12 03:16:52 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-12 03:16:52 +0200
commit2842f25b82799315c36a81564619cb5467bff61f (patch)
treeab0f729c7758b10f0f66e85f655ae7aa10d54463 /test/test_examples.py
parent9ec7963f8ed6694e7517952a5019d0ec8e841fb8 (diff)
downloadmitmproxy-2842f25b82799315c36a81564619cb5467bff61f.tar.gz
mitmproxy-2842f25b82799315c36a81564619cb5467bff61f.tar.bz2
mitmproxy-2842f25b82799315c36a81564619cb5467bff61f.zip
fix tests
Diffstat (limited to 'test/test_examples.py')
-rw-r--r--test/test_examples.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index d557080e..fd42e6f0 100644
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -1,11 +1,11 @@
import glob
+import mock
from libmproxy import utils, script
from libmproxy.proxy import config
import tservers
-
+@mock.patch.dict("sys.modules", {"bs4": mock.Mock()})
def test_load_scripts():
-
example_dir = utils.Data("libmproxy").path("../examples")
scripts = glob.glob("%s/*.py" % example_dir)