Skip to content

Commit 7107865

Browse files
renovate[bot]amezin
authored andcommitted
chore(deps): update dependency pytest-html to v4
1 parent c69d429 commit 7107865

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

test/requirements/pypi.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
pytest~=7.4.0
44
pytest-xdist[psutil,setproctitle]~=3.3.1
5-
pytest-html~=3.2.0
5+
pytest-html~=4.0.0
66
pytest-rerunfailures~=12.0
77
pluggy~=1.3.0
88
ansi2html~=1.8.0

test/requirements/pypi.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ filelock==3.12.3
1616
# via -r pypi.in
1717
iniconfig==2.0.0
1818
# via pytest
19+
jinja2==3.1.2
20+
# via pytest-html
21+
markupsafe==2.1.3
22+
# via jinja2
1923
packaging==23.1
2024
# via
2125
# pytest
@@ -35,7 +39,7 @@ pytest==7.4.1
3539
# pytest-metadata
3640
# pytest-rerunfailures
3741
# pytest-xdist
38-
pytest-html==3.2.0
42+
pytest-html==4.0.0
3943
# via -r pypi.in
4044
pytest-metadata==3.0.0
4145
# via pytest-html

test/screenshot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ def pytest_runtest_makereport(self, item, call):
7777

7878
png_blob = screenshot(self.display)
7979

80-
extra = getattr(report, 'extra', [])
80+
extras = getattr(report, 'extras', [])
8181

82-
extra.append(
82+
extras.append(
8383
pytest_html.extras.png(base64.b64encode(png_blob).decode('ascii'))
8484
)
8585

86-
report.extra = extra
86+
report.extras = extras
8787

8888

8989
def pytest_addoption(parser):

test/tox.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ passenv =
1111

1212
deps = -r requirements.txt
1313

14-
# https://github.com/pytest-dev/pytest/issues/10451
15-
commands_pre =
16-
rm -f {envsitepackagesdir}/py.py
17-
allowlist_externals = rm
18-
1914
commands = python -m pytest -c {toxinidir}/pytest.ini --html=report.html --dist=worksteal {posargs: -n auto --screenshot-failing-only}
2015

2116
suicide_timeout = 10

0 commit comments

Comments
 (0)