pytest-dev / pytest-dev/pytest-html

Remove dependency on py

Open
#350 20 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Infrastructure
Dominant language
Python
Stars
779
Forks
260
PR merge metrics
No merged PRs in 30d

Description

We currently depend on the py project for its xml module as seen below:

gnikonorov:~/pytest-html$ git grep "from py\."
README.rst:   from py.xml import html
README.rst:   from py.xml import html
README.rst:  from py.xml import html
pytest_html/plugin.py:from py.xml import html
pytest_html/plugin.py:from py.xml import raw
testing/test_pytest_html.py:            from py.xml import html
testing/test_pytest_html.py:            from py.xml import html
gnikonorov:~/pytest-html$ git grep "import py

Since this library is in maintenance only mode now, I think we should migrate away from it to other alternatives as it looks like we only use it to generate HTML elements for the report.

Thoughts @ssbarnea and @BeyondEvil ? If neither if you object I want to go ahead and see if I can migrate us off of it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the py.xml imports in pytest_html/plugin.py and testing/test_pytest_html.py, then check the examples in README.rst and the issue's git grep results. Identify the replacement approach before changing the affected files. Done means pytest-html no longer depends on py for HTML generation and the existing tests still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.