pytest-dev / pytest-dev/pytest-html

Environment/metadata section no longer visible after pytest-metadata update to 3.0.0

Open
#683 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

pytest-metadata was bumped to 3.0.0:

https://pypi.org/project/pytest-metadata/#history

This changed the API for accessing and modifying the metadata object:

https://github.com/pytest-dev/pytest-metadata/compare/v2.0.4...master -> README.rst

image

With those changes, Environment section is no longer appearing in the htm report (tested on pytest-html 3.1.1 with pytest-metadata 3.0.0)

Also the documentation should be updated to reflect on the changes in pytest-metadata, as this:

image

is no longer possible

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 pytest-metadata 2.0.4-to-3.0.0 API comparison linked in the issue, then trace how pytest-html builds its Environment section. Update the integration and related documentation for the new metadata API, and verify that generated HTML reports display the Environment section.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.