You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crashes with KeyError: 'retried' when test is retried with pytest-retry #815
I encountered the same issue as well, and found what seems to be a solution (at least in my case). The solution requires two minor changes to the pytest_html module files, basereport.py and report_data.py:
In basereport.py, add "retried" to the relevant_outcomes list.
In report_data.py, add the following to the self._outcomes dict in class ReportData:
"retried": {"label": "Retries", "value": 0}
I made these changes to pytest-html 4.1.1, which appears to be the latest version.
Activity
rambhupala-merla commentedon Sep 20, 2024
I am also facing the same issue
cbspencer66 commentedon Oct 15, 2024
I encountered the same issue as well, and found what seems to be a solution (at least in my case). The solution requires two minor changes to the pytest_html module files, basereport.py and report_data.py:
In basereport.py, add "retried" to the relevant_outcomes list.
In report_data.py, add the following to the self._outcomes dict in class ReportData:
"retried": {"label": "Retries", "value": 0}I made these changes to pytest-html 4.1.1, which appears to be the latest version.
ETreskovskis commentedon Dec 2, 2024
@angelos-p @cbspencer66 pytest-rerunfailures plugin works fine with the latest pytest-html version. Until pytest-retry fix would merged.