+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-enum-tools-0.9.0.post1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-enum-tools-0.9.0.post1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.14, pytest-7.1.3, pluggy-1.0.0
Test session started at 10:09:12
rootdir: /home/tkloczko/rpmbuild/BUILD/enum_tools-0.9.0.post1, configfile: tox.ini
plugins: datadir-1.3.1, regressions-2.4.1, timeout-2.1.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 69 items
tests/test_autoenum.py .........FFF [ 17%]
tests/test_documented_enum.py .............................. [ 60%]
tests/test_enums.py ........ [ 72%]
tests/test_utils.py ................... [100%]
================================================================================= FAILURES =================================================================================
__________________________________________________________________________ test_index[index.html] __________________________________________________________________________
page = <!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scal...
</div>
</div>
<div class="clearer"></div>
</div>
</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7ff5773d0430>
@pytest.mark.parametrize(
"page", [
"index.html",
], indirect=True
)
def test_index(page: BeautifulSoup, html_regression: HTMLRegressionFixture):
# Make sure the page title is what you expect
title = page.find("h1").contents[0].strip()
assert "autoenum Demo" == title
preprocess_soup(page)
> html_regression.check(page, jinja2=True)
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-tkloczko/pytest-48/test_index_index_html_0/test_autoenum_/test_index_index_html_.html
E /tmp/pytest-of-tkloczko/pytest-48/test_index_index_html_0/test_autoenum_/test_index_index_html_.obtained.html
E HTML DIFF: /tmp/pytest-of-tkloczko/pytest-48/test_index_index_html_0/test_autoenum_/test_index_index_html_.obtained.diff.html
E ---
E +++
E @@ -1,8 +1,9 @@
E <!DOCTYPE html>
E -<html>
E +<html lang="en">
E <head>
E <meta charset="utf-8"/>
E <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E + <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E <title>
E autoenum Demo — Python documentation
E </title>
E @@ -11,6 +12,8 @@
E <script src="_static/jquery.js">
E </script>
E <script src="_static/underscore.js">
E + </script>
E + <script src="_static/_sphinx_javascript_frameworks_compat.js">
E </script>
E <script src="_static/doctools.js">
E </script>
E @@ -21,12 +24,12 @@
E <div class="documentwrapper">
E <div class="bodywrapper">
E <div class="body" role="main">
E - <div class="section" id="module-enum_tools.demo">
E + <section id="module-enum_tools.demo">
E <span id="autoenum-demo">
E </span>
E <h1>
E autoenum Demo
E - <a class="headerlink" href="#module-enum_tools.demo" title="Permalink to this headline">
E + <a class="headerlink" href="#module-enum_tools.demo" title="Permalink to this heading">
E ¶
E </a>
E </h1>
E @@ -63,6 +66,9 @@
E <dl class="field-list simple">
E <dt class="field-odd">
E Member Type
E + <span class="colon">
E + :
E + </span>
E </dt>
E <dd class="field-odd">
E <p>
E @@ -241,6 +247,9 @@
E <dl class="field-list simple">
E <dt class="field-odd">
E Member Type
E + <span class="colon">
E + :
E + </span>
E </dt>
E <dd class="field-odd">
E <p>
E @@ -330,7 +339,7 @@
E </code>
E </a>
E </p>
E - </div>
E + </section>
E </div>
E </div>
E </div>
tests/test_autoenum.py:97: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-48/root
# outdir: /tmp/pytest-of-tkloczko/pytest-48/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
build succeeded.
The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-48/root/_build/html.
# warning:
___________________________________________________________________________ test_flag[flag.html] ___________________________________________________________________________
page = <!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scal...
</div>
</div>
<div class="clearer"></div>
</div>
</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7ff577162340>
@pytest.mark.parametrize(
"page", [
"flag.html",
], indirect=True
)
def test_flag(page: BeautifulSoup, html_regression: HTMLRegressionFixture):
# Make sure the page title is what you expect
title = page.find("h1").contents[0].strip()
assert "autoenum Demo - Flag" == title
preprocess_soup(page)
> html_regression.check(page, jinja2=True)
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-tkloczko/pytest-48/test_flag_flag_html_0/test_autoenum_/test_flag_flag_html_.html
E /tmp/pytest-of-tkloczko/pytest-48/test_flag_flag_html_0/test_autoenum_/test_flag_flag_html_.obtained.html
E HTML DIFF: /tmp/pytest-of-tkloczko/pytest-48/test_flag_flag_html_0/test_autoenum_/test_flag_flag_html_.obtained.diff.html
E ---
E +++
E @@ -1,8 +1,9 @@
E <!DOCTYPE html>
E -<html>
E +<html lang="en">
E <head>
E <meta charset="utf-8"/>
E <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E + <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E <title>
E autoenum Demo - Flag — Python documentation
E </title>
E @@ -11,6 +12,8 @@
E <script src="_static/jquery.js">
E </script>
E <script src="_static/underscore.js">
E + </script>
E + <script src="_static/_sphinx_javascript_frameworks_compat.js">
E </script>
E <script src="_static/doctools.js">
E </script>
E @@ -21,10 +24,10 @@
E <div class="documentwrapper">
E <div class="bodywrapper">
E <div class="body" role="main">
E - <div class="section" id="autoenum-demo-flag">
E + <section id="autoenum-demo-flag">
E <h1>
E autoenum Demo - Flag
E - <a class="headerlink" href="#autoenum-demo-flag" title="Permalink to this headline">
E + <a class="headerlink" href="#autoenum-demo-flag" title="Permalink to this heading">
E ¶
E </a>
E </h1>
E @@ -61,6 +64,9 @@
E <dl class="field-list simple">
E <dt class="field-odd">
E Member Type
E + <span class="colon">
E + :
E + </span>
E </dt>
E <dd class="field-odd">
E <p>
E @@ -193,6 +199,9 @@
E <dl class="field-list simple">
E <dt class="field-odd">
E Member Type
E + <span class="colon">
E + :
E + </span>
E </dt>
E <dd class="field-odd">
E <p>
E @@ -290,7 +299,7 @@
E </dl>
E </dd>
E </dl>
E - </div>
E + </section>
E </div>
E </div>
E </div>
tests/test_autoenum.py:195: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-48/root
# outdir: /tmp/pytest-of-tkloczko/pytest-48/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
build succeeded.
The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-48/root/_build/html.
# warning:
__________________________________________________________________ test_no_member_doc[no-member-doc.html] __________________________________________________________________
page = <!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scal...
</div>
</div>
<div class="clearer"></div>
</div>
</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7ff5770e71c0>
@pytest.mark.parametrize(
"page", [
"no-member-doc.html",
], indirect=True
)
def test_no_member_doc(page: BeautifulSoup, html_regression: HTMLRegressionFixture):
# Make sure the page title is what you expect
title = page.find("h1").contents[0].strip()
assert "autoenum Demo - Members without docstrings" == title
preprocess_soup(page)
> html_regression.check(page, jinja2=True)
E AssertionError: FILES DIFFER:
E /tmp/pytest-of-tkloczko/pytest-48/test_no_member_doc_no_member_d0/test_autoenum_/test_no_member_doc_no_member_doc_html_.html
E /tmp/pytest-of-tkloczko/pytest-48/test_no_member_doc_no_member_d0/test_autoenum_/test_no_member_doc_no_member_doc_html_.obtained.html
E HTML DIFF: /tmp/pytest-of-tkloczko/pytest-48/test_no_member_doc_no_member_d0/test_autoenum_/test_no_member_doc_no_member_doc_html_.obtained.diff.html
E ---
E +++
E @@ -1,8 +1,9 @@
E <!DOCTYPE html>
E -<html>
E +<html lang="en">
E <head>
E <meta charset="utf-8"/>
E <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E + <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E <title>
E autoenum Demo - Members without docstrings — Python documentation
E </title>
E @@ -11,6 +12,8 @@
E <script src="_static/jquery.js">
E </script>
E <script src="_static/underscore.js">
E + </script>
E + <script src="_static/_sphinx_javascript_frameworks_compat.js">
E </script>
E <script src="_static/doctools.js">
E </script>
E @@ -21,10 +24,10 @@
E <div class="documentwrapper">
E <div class="bodywrapper">
E <div class="body" role="main">
E - <div class="section" id="autoenum-demo-members-without-docstrings">
E + <section id="autoenum-demo-members-without-docstrings">
E <h1>
E autoenum Demo - Members without docstrings
E - <a class="headerlink" href="#autoenum-demo-members-without-docstrings" title="Permalink to this headline">
E + <a class="headerlink" href="#autoenum-demo-members-without-docstrings" title="Permalink to this heading">
E ¶
E </a>
E </h1>
E @@ -61,6 +64,9 @@
E <dl class="field-list simple">
E <dt class="field-odd">
E Member Type
E + <span class="colon">
E + :
E + </span>
E </dt>
E <dd class="field-odd">
E <p>
E @@ -127,7 +133,7 @@
E </code>
E </a>
E </p>
E - </div>
E + </section>
E </div>
E </div>
E </div>
tests/test_autoenum.py:280: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-48/root
# outdir: /tmp/pytest-of-tkloczko/pytest-48/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.
build succeeded.
The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-48/root/_build/html.
# warning:
=========================================================================== slowest 25 durations ===========================================================================
0.40s call tests/test_autoenum.py::test
0.14s setup tests/test_autoenum.py::test
0.05s setup tests/test_autoenum.py::test_index[index.html]
0.04s setup tests/test_autoenum.py::test_flag[flag.html]
0.04s call tests/test_autoenum.py::test_index[index.html]
0.04s setup tests/test_autoenum.py::test_no_member_doc[no-member-doc.html]
0.03s call tests/test_autoenum.py::test_flag[flag.html]
0.02s call tests/test_autoenum.py::test_no_member_doc[no-member-doc.html]
(17 durations < 0.005s hidden. Use -vv to show these durations.)
========================================================================= short test summary info ==========================================================================
FAILED tests/test_autoenum.py::test_index[index.html] - AssertionError: FILES DIFFER:
FAILED tests/test_autoenum.py::test_flag[flag.html] - AssertionError: FILES DIFFER:
FAILED tests/test_autoenum.py::test_no_member_doc[no-member-doc.html] - AssertionError: FILES DIFFER:
======================================================================= 3 failed, 66 passed in 1.13s =======================================================================
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolationbuildwith--no-isolationI'm using during all processes only locally installed modulesOn first looks looks like `enum_tools needs to be adapoed for latest sphix.
Here is pytest output:
Details
Here is list of installed modules in build env
Details