-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in report creation #44
Comments
@Rdvp1514 I just looked at the code. Looks like you are getting a None value from param_data["status"], which should not be None. So the issue is somewhere else, not in the get_basic_report function. It would be helpful if you can provide the code that you run to repro this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
python --version
----V3.10pip show test_junkie
-----Version: 0.8a6.local/lib/python3.10/site-packages/test_junkie/metrics.py", line 179, in get_basic_report
report["tests"][param_data["status"]] += 1
KeyError: None
Expected behavior
The code shoud returne the report
Actual behavior
KeyError: None
PATH: venv/lib/python3.10/site-packages/test_junkie/metrics.py line 156
There is the code to fix the error
`
from collections import defaultdict
def get_basic_report(self):
def get_template():
return {"total": 0,
TestCategory.SUCCESS: 0,
TestCategory.FAIL: 0,
TestCategory.ERROR: 0,
TestCategory.IGNORE: 0,
TestCategory.SKIP: 0,
TestCategory.CANCEL: 0}
`
The text was updated successfully, but these errors were encountered: