Skip to content

ZO-4627: Use lxml.etree for content objects instead of lxml.objectify #98

ZO-4627: Use lxml.etree for content objects instead of lxml.objectify

ZO-4627: Use lxml.etree for content objects instead of lxml.objectify #98

GitHub Actions / Test Results failed Feb 21, 2024 in 0s

1 fail, 55 skipped, 2 681 pass in 8m 41s

    2 files  ±0      2 suites  ±0   8m 41s ⏱️ -24s
2 737 tests ±0  2 681 ✅ ±0  55 💤  - 1  1 ❌ +1 
2 766 runs  ±0  2 710 ✅ ±0  55 💤  - 1  1 ❌ +1 

Results for commit 9dc514b. ± Comparison against earlier commit 7093089.

Annotations

Check warning on line 0 in vivi.core.src.zeit.wysiwyg.tests.test_doctests.test_suite./home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt

See this annotation in the file changed.

@github-actions github-actions / Test Results

runTest (vivi.core.src.zeit.wysiwyg.tests.test_doctests.test_suite./home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt) failed

deployment/work/source/report.xml [took 0s]
Raw output
AssertionError: Failed doctest test for html.txt
  File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 0

----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1177, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    +     <portraitbox xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/pb" layout="short"/>
    -     <portraitbox href="http://xml.zeit.de/2006/pb"
    -       ...layout="short"/>
        </body>
      </article>
----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1194, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    -     <portraitbox href="http://xml.zeit.de/2006/pb-not-there" layout="short"/>
    +     <portraitbox xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/pb-not-there" layout="short"/>
        </body>
      </article>
----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1248, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    -     <infobox href="http://xml.zeit.de/2006/ib"...
    +     <infobox xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/ib" contenttype="infobox">
    +       <supertitle/>
    +       <title/>
    +       <text/>
    +       <description/>
    +       <byline/>
    +     </infobox>
        </body>
      </article>
----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1279, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    -     <timeline href="http://xml.zeit.de/2006/ib"...
    +     <timeline xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/ib" contenttype="infobox">
    +       <supertitle/>
    +       <title/>
    +       <text/>
    +       <description/>
    +       <byline/>
    +     </timeline>
        </body>
      </article>
----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1313, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    -     <gallery href="http://xml.zeit.de/2006/gal" ...>
    +     <gallery xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/gal" contenttype="gallery">
    -       <supertitle...
    ?                  ^^^
    +       <supertitle/>
    ?                  ^^
    +       <title/>
    +       <text/>
    +       <description/>
    +       <byline/>
          </gallery>
        </body>
      </article>
Traceback (most recent call last):
  File "/home/runner/_work/_tool/Python/3.10.13/x64/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/home/runner/_work/_tool/Python/3.10.13/x64/lib/python3.10/unittest/case.py", line 591, in run
    self._callTestMethod(testMethod)
  File "/home/runner/_work/_tool/Python/3.10.13/x64/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
  File "/home/runner/_work/_tool/Python/3.10.13/x64/lib/python3.10/doctest.py", line 2221, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for html.txt
  File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 0

----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1177, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    +     <portraitbox xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/pb" layout="short"/>
    -     <portraitbox href="http://xml.zeit.de/2006/pb"
    -       ...layout="short"/>
        </body>
      </article>
----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1194, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    -     <portraitbox href="http://xml.zeit.de/2006/pb-not-there" layout="short"/>
    +     <portraitbox xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/pb-not-there" layout="short"/>
        </body>
      </article>
----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1248, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    -     <infobox href="http://xml.zeit.de/2006/ib"...
    +     <infobox xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/ib" contenttype="infobox">
    +       <supertitle/>
    +       <title/>
    +       <text/>
    +       <description/>
    +       <byline/>
    +     </infobox>
        </body>
      </article>
----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1279, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    -     <timeline href="http://xml.zeit.de/2006/ib"...
    +     <timeline xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/ib" contenttype="infobox">
    +       <supertitle/>
    +       <title/>
    +       <text/>
    +       <description/>
    +       <byline/>
    +     </timeline>
        </body>
      </article>
----------------------------------------------------------------------
File "/home/runner/_work/vivi/vivi/core/src/zeit/wysiwyg/html.txt", line 1313, in html.txt
Failed example:
    print(zeit.cms.testing.xmltotext(article.xml))
Differences (ndiff with -expected +actual):
    - <article...>
    ?         ---
    + <article>
        <head/>
        <body>
    -     <gallery href="http://xml.zeit.de/2006/gal" ...>
    +     <gallery xmlns:py="http://codespeak.net/lxml/objectify/pytype" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" href="http://xml.zeit.de/2006/gal" contenttype="gallery">
    -       <supertitle...
    ?                  ^^^
    +       <supertitle/>
    ?                  ^^
    +       <title/>
    +       <text/>
    +       <description/>
    +       <byline/>
          </gallery>
        </body>
      </article>