diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 90a7953b..b36a1022 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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** diff --git a/examples/postman_echo/conftest.py b/examples/postman_echo/conftest.py deleted file mode 100644 index 139597f9..00000000 --- a/examples/postman_echo/conftest.py +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/httprunner/__init__.py b/httprunner/__init__.py index 36b1d4d9..d6cc44a1 100644 --- a/httprunner/__init__.py +++ b/httprunner/__init__.py @@ -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 diff --git a/httprunner/ext/make/__init__.py b/httprunner/ext/make/__init__.py index 80dad535..a1611579 100644 --- a/httprunner/ext/make/__init__.py +++ b/httprunner/ext/make/__init__.py @@ -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}") diff --git a/pyproject.toml b/pyproject.toml index 9a499654..f711f3d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"