From 2842f25b82799315c36a81564619cb5467bff61f Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 12 Sep 2014 03:16:52 +0200 Subject: fix tests --- test/test_examples.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_examples.py') 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) -- cgit v1.2.3