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

View File

@@ -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**

View File

@@ -1,2 +0,0 @@

View File

@@ -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

View File

@@ -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}")

View File

@@ -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"