+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-html-section-0.3.0-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-html-section-0.3.0-2.fc37.x86_64/usr/lib/python3.10/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.10.14, pytest-8.1.1, pluggy-1.4.0
Test session started at 23:33:18
rootdir: /home/tkloczko/rpmbuild/BUILD/html-section-0.3.0
configfile: tox.ini
plugins: subprocess-1.5.0, pyfakefs-5.3.5, datadir-1.5.0, regressions-2.5.0, timeout-2.3.1
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 3 items
tests/test_output.py .F. [100%]
========================================================================================= FAILURES ==========================================================================================
_____________________________________________________________________________________ test_html_output ______________________________________________________________________________________
app = <SphinxTestApp buildername='html'>, html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7fca2c375c30>
@pytest.mark.usefixtures("doc_root")
@pytest.mark.sphinx("html", testroot="test-html-section")
def test_html_output(app: Sphinx, html_regression: HTMLRegressionFixture):
assert cast(Builder, app.builder).name.lower() == "html"
app.build(force_all=True)
output_file = PathPlus(app.outdir) / "index.html"
page = BeautifulSoup(output_file.read_text(), "html5lib")
for div in page.findAll("script"):
if div.get("src"):
div["src"] = div["src"].split("?v=")[0]
print(div["src"])
> html_regression.check(page, jinja2=True)
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-tkloczko/pytest-318/test_html_output0/test_output_/test_html_output.html
E /tmp/pytest-of-tkloczko/pytest-318/test_html_output0/test_output_/test_html_output.obtained.html
E HTML DIFF: /tmp/pytest-of-tkloczko/pytest-318/test_html_output0/test_output_/test_html_output.obtained.diff.html
E ---
E +++
E @@ -13,7 +13,6 @@
E </script>
E <script src="_static/sphinx_highlight.js">
E </script>
E - <meta content="width=device-width, initial-scale=0.9, maximum-scale=0.9" name="viewport"/>
E </head>
E <body>
E <div class="document">
tests/test_output.py:50: AssertionError
----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------
_static/documentation_options.js
_static/doctools.js
_static/sphinx_highlight.js
--------------------------------------------------------------------------------- Captured stdout teardown ----------------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-318/test-html-section
# outdir: /tmp/pytest-of-tkloczko/pytest-318/test-html-section/_build/html
# status:
Running Sphinx v7.2.6
loading pickled environment... done
building [mo]: all of 0 po files
writing output...
building [html]: all source files
updating environment: 0 added, 1 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
writing output... [100%] index
generating indices... genindex done
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.
The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-318/test-html-section/_build/html.
# warning:
=================================================================================== slowest 25 durations ====================================================================================
0.23s call tests/test_output.py::test_build_example
0.17s call tests/test_output.py::test_html_output
0.15s setup tests/test_output.py::test_build_example
0.05s call tests/test_output.py::test_latex_output
0.03s setup tests/test_output.py::test_latex_output
0.02s setup tests/test_output.py::test_html_output
(3 durations < 0.005s hidden. Use -vv to show these durations.)
================================================================================== short test summary info ==================================================================================
FAILED tests/test_output.py::test_html_output - AssertionError: FILES DIFFER:
================================================================================ 1 failed, 2 passed in 0.79s ================================================================================
Just tested 0.3.0 + master (cf2fdd1) in build env with sphinx 7.2.6 and looks like one unit of the test suite is failing