From 28ba2fac2cb9ba70596d93a2cabbc3d673cd66ec Mon Sep 17 00:00:00 2001 From: Eugene Popov <1finconsult1@gmail.com> Date: Sat, 27 Jun 2026 15:59:24 +0300 Subject: [PATCH 1/2] Fixing pytest-html 4.2.0 packaging bug (blocker) For pytest-html-dashboard users. The app.js file is missing from the package's resources directory, causing jinja2.exceptions.TemplateNotFound before any report file can be written. Without the report file, the dashboard enhancement never even runs. --- src/pytest_html/resources/app.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/pytest_html/resources/app.js diff --git a/src/pytest_html/resources/app.js b/src/pytest_html/resources/app.js new file mode 100644 index 00000000..e301fb71 --- /dev/null +++ b/src/pytest_html/resources/app.js @@ -0,0 +1,3 @@ +(function () { + "use strict"; +})(); From 369305cb5a74f8eb92437bfb06479e6b3086c3ed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 13:07:05 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pytest_html/resources/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pytest_html/resources/app.js b/src/pytest_html/resources/app.js index e301fb71..eed931ac 100644 --- a/src/pytest_html/resources/app.js +++ b/src/pytest_html/resources/app.js @@ -1,3 +1,3 @@ -(function () { - "use strict"; -})(); +(function() { + 'use strict' +})()