mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-09 01:17:30 +08:00
fix #1217: reload debugtalk.py if loaded
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Release History
|
||||
|
||||
## 2.5.9 (2022-04-30)
|
||||
|
||||
- fix #1217: reload debugtalk.py if loaded
|
||||
|
||||
## 2.5.8 (2022-03-23)
|
||||
|
||||
- change: replace events reporter from sentry to Google Analytics
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import importlib
|
||||
import os
|
||||
import sys
|
||||
|
||||
from httprunner import exceptions, logger, utils
|
||||
from httprunner.loader.check import JsonSchemaChecker
|
||||
@@ -26,7 +27,11 @@ def load_debugtalk_functions():
|
||||
|
||||
"""
|
||||
# load debugtalk.py module
|
||||
if sys.modules.get('debugtalk'):
|
||||
imported_module = importlib.reload(sys.modules['debugtalk'])
|
||||
else:
|
||||
imported_module = importlib.import_module("debugtalk")
|
||||
|
||||
return load_module_functions(imported_module)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user