Skip to content

Commit

Permalink
fix: Incorrect label for xfailed (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyondEvil committed Sep 10, 2023
1 parent 682d4d1 commit ee21115
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Versions follow `Semantic Versioning`_ (``<major>.<minor>.<patch>``).
Version History
---------------

4.0.1 (2023-09-10)
~~~~~~~~~~~~~~~~~~

* Fix incorrectly labeled outcome.

* Thanks to `@lodagro <https://github.com/lodagro>`_ for reporting

4.0.0 (2023-09-01)
~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion src/pytest_html/report_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, config):
"failed": {"label": "Failed", "value": 0},
"passed": {"label": "Passed", "value": 0},
"skipped": {"label": "Skipped", "value": 0},
"xfailed": {"label": "Unexpected failures", "value": 0},
"xfailed": {"label": "Expected failures", "value": 0},
"xpassed": {"label": "Unexpected passes", "value": 0},
"error": {"label": "Errors", "value": 0},
"rerun": {"label": "Reruns", "value": 0},
Expand Down
2 changes: 1 addition & 1 deletion testing/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"skipped": "Skipped",
"failed": "Failed",
"error": "Errors",
"xfailed": "Unexpected failures",
"xfailed": "Expected failures",
"xpassed": "Unexpected passes",
"rerun": "Reruns",
}
Expand Down

0 comments on commit ee21115

Please sign in to comment.