aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)