Release v2.0.1
This commit is contained in:
parent
ea20a6a146
commit
97267a2523
|
@ -17,6 +17,7 @@ jobs:
|
|||
directories:
|
||||
- $HOME/.cache/pre-commit
|
||||
|
||||
-
|
||||
python: 3.6
|
||||
env: TOXENV=py36
|
||||
|
||||
|
|
14
CHANGES.rst
14
CHANGES.rst
|
@ -1,6 +1,20 @@
|
|||
Release Notes
|
||||
-------------
|
||||
|
||||
**2.0.1 (2019-10-05)**
|
||||
|
||||
* Properly check for presence of CSS file. (`#246 <https://github.com/pytest-dev/pytest-html/issues/246>`_)
|
||||
|
||||
* Thanks to `@wanam <https://github.com/wanam>`_ for reporting, and `@krzysztof-pawlik-gat <https://github.com/krzysztof-pawlik-gat>`_ for the fix
|
||||
|
||||
* Added support for UTF-8 display. (`#244 <https://github.com/pytest-dev/pytest-html/pull/244>`_)
|
||||
|
||||
* Thanks to `@Izhu666 <https://github.com/lzhu666>`_ for the PR
|
||||
|
||||
* Fix initial sort on column. (`#247 <https://github.com/pytest-dev/pytest-html/issues/247>`_)
|
||||
|
||||
* Thanks to `@wanam <https://github.com/wanam>`_ for reporting and fixing
|
||||
|
||||
**2.0.0 (2019-09-09)**
|
||||
|
||||
* Drop support for Python 2.7. We will continue to accept patches to ``1.22.x`` for the time being.
|
||||
|
|
|
@ -786,16 +786,16 @@ class TestHTML:
|
|||
testdir.makepyfile("def test_pass(): pass")
|
||||
result = testdir.runpytest("--css", "style.css")
|
||||
assert result.ret == 0
|
||||
|
||||
|
||||
def test_report_display_utf8(self, testdir):
|
||||
testdir.makepyfile(
|
||||
"""
|
||||
import pytest
|
||||
@pytest.mark.parametrize("caseName,input,expected", [('测试用例名称', '6*6', 36)])
|
||||
def test_eval(caseName, input, expected):
|
||||
assert eval(input) == expected
|
||||
@pytest.mark.parametrize("utf8", [("测试用例名称")])
|
||||
def test_pass(utf8):
|
||||
assert True
|
||||
"""
|
||||
)
|
||||
result, html = run(testdir)
|
||||
assert result.ret == 0
|
||||
assert r'\u6d4b\u8bd5\u7528\u4f8b\u540d\u79f0' not in html
|
||||
assert r"\u6d4b\u8bd5\u7528\u4f8b\u540d\u79f0" not in html
|
||||
|
|
Loading…
Reference in New Issue