mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
fix tests
This commit is contained in:
parent
9ec7963f8e
commit
2842f25b82
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user