diff --git a/test/test_examples.py b/test/test_examples.py index d557080ef..fd42e6f08 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)