fix: ensure converted python file in utf-8 encoding

This commit is contained in:
debugtalk
2020-05-23 19:54:30 +08:00
parent b4c7e333fc
commit 246112865b
5 changed files with 9 additions and 5 deletions
+6
View File
@@ -1,5 +1,11 @@
# Release History # Release History
## 3.0.6 (2020-05-23)
**Fixed**
- fix: ensure converted python file in utf-8 encoding
## 3.0.5 (2020-05-22) ## 3.0.5 (2020-05-22)
**Added** **Added**
-2
View File
@@ -1,2 +0,0 @@
+1 -1
View File
@@ -1,4 +1,4 @@
__version__ = "3.0.5" __version__ = "3.0.6"
__description__ = "One-stop solution for HTTP(S) testing." __description__ = "One-stop solution for HTTP(S) testing."
from httprunner.runner import HttpRunner from httprunner.runner import HttpRunner
+1 -1
View File
@@ -102,7 +102,7 @@ def make_testcase(testcase: Dict) -> Union[str, None]:
} }
content = template.render(data) 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) f.write(content)
logger.info(f"generated testcase: {testcase_python_path}") logger.info(f"generated testcase: {testcase_python_path}")
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "httprunner" name = "httprunner"
version = "3.0.5" version = "3.0.6"
description = "One-stop solution for HTTP(S) testing." description = "One-stop solution for HTTP(S) testing."
license = "Apache-2.0" license = "Apache-2.0"
readme = "README.md" readme = "README.md"