mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
fix: reload to refresh previously loaded debugtalk module
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
**Fixed**
|
**Fixed**
|
||||||
|
|
||||||
- fix: incorrect summary success when testcase failed
|
- fix: incorrect summary success when testcase failed
|
||||||
|
- fix: reload to refresh previously loaded debugtalk module
|
||||||
|
|
||||||
## 3.0.10 (2020-06-07)
|
## 3.0.10 (2020-06-07)
|
||||||
|
|
||||||
|
|||||||
@@ -371,6 +371,8 @@ def load_debugtalk_functions() -> Dict[Text, Callable]:
|
|||||||
"""
|
"""
|
||||||
# load debugtalk.py module
|
# load debugtalk.py module
|
||||||
imported_module = importlib.import_module("debugtalk")
|
imported_module = importlib.import_module("debugtalk")
|
||||||
|
# reload to refresh previously loaded module
|
||||||
|
imported_module = importlib.reload(imported_module)
|
||||||
return load_module_functions(imported_module)
|
return load_module_functions(imported_module)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
import os
|
import os
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from httprunner import compat, exceptions
|
from httprunner import compat, exceptions, loader
|
||||||
from httprunner.compat import convert_variables
|
from httprunner.compat import convert_variables
|
||||||
|
|
||||||
|
|
||||||
class TestCompat(unittest.TestCase):
|
class TestCompat(unittest.TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
loader.project_meta = None
|
||||||
|
|
||||||
def test_convert_variables(self):
|
def test_convert_variables(self):
|
||||||
raw_variables = [{"var1": 1}, {"var2": "val2"}]
|
raw_variables = [{"var1": 1}, {"var2": "val2"}]
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
|||||||
Reference in New Issue
Block a user