mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 10:59:42 +08:00
fix: ensure converted python file in utf-8 encoding
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Release History
|
||||
|
||||
## 3.0.6 (2020-05-23)
|
||||
|
||||
**Fixed**
|
||||
|
||||
- fix: ensure converted python file in utf-8 encoding
|
||||
|
||||
## 3.0.5 (2020-05-22)
|
||||
|
||||
**Added**
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
__version__ = "3.0.5"
|
||||
__version__ = "3.0.6"
|
||||
__description__ = "One-stop solution for HTTP(S) testing."
|
||||
|
||||
from httprunner.runner import HttpRunner
|
||||
|
||||
@@ -102,7 +102,7 @@ def make_testcase(testcase: Dict) -> Union[str, None]:
|
||||
}
|
||||
content = template.render(data)
|
||||
|
||||
with open(testcase_python_path, "w") as f:
|
||||
with open(testcase_python_path, "w", encoding="utf-8") as f:
|
||||
f.write(content)
|
||||
|
||||
logger.info(f"generated testcase: {testcase_python_path}")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "httprunner"
|
||||
version = "3.0.5"
|
||||
version = "3.0.6"
|
||||
description = "One-stop solution for HTTP(S) testing."
|
||||
license = "Apache-2.0"
|
||||
readme = "README.md"
|
||||
|
||||
Reference in New Issue
Block a user