1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/community/py3-readme_renderer
mio 928f9c531b community/py3-readme_renderer: fix test_rst test
Patch test outputs to fix failed rst fixtures test.

```
____________________ test_rst_fixtures[test_rst_008.rst] ______________________

rst_filename = PosixPath('/home/buildozer/aports/community/py3-readme_renderer/src/readme_renderer-44.0/tests/fixtures/test_rst_008.rst')
html_filename = PosixPath('/home/buildozer/aports/community/py3-readme_renderer/src/readme_renderer-44.0/tests/fixtures/test_rst_008.html')

    @pytest.mark.parametrize(
        ("rst_filename", "html_filename"),
        [
            (pytest.param(fn, fn.with_suffix(".html"), id=fn.name))
            for fn in Path(__file__).parent.glob("fixtures/test_*.rst")
        ],
    )
    def test_rst_fixtures(rst_filename, html_filename):

[...]

        if "<" in expected:
>           assert out == expected
E           assert '<p>Here is s...code></pre>\n' == '<p>Here is s...code></pre>\n'
E
E             Skipping 110 identical leading characters in diff, use -v to show
E             - ass</span> <span class="nc">Dog</span><span class="p">(</span><span class="n">Animal</span><span class="p">):</span><span class="w">
E             ?           -
E             + ass</span><span class="w"> </span><span class="nc">Dog</span><span class="p">(</span><span class="n">Animal</span><span class="p">):</span><span class="w">
E             ?                ++++++++++++++++++++++++
E             - </span>    <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">):</span><span class="w">...
E
E             ...Full output truncated (18 lines hidden), use '-vv' to show

tests/test_rst.py:28: AssertionError
```
2025-05-12 08:06:38 +00:00
..
APKBUILD
update-test-outputs.patch