pytest-html icon indicating copy to clipboard operation
pytest-html copied to clipboard

AttributeError: 'Cells' object has no attribute 'pop' Error

Open rajeshkz opened this issue 2 years ago • 4 comments

I'm getting an error "AttributeError: 'Cells' object has no attribute 'pop'" with the version of 4.0.0rc0. The error is coming from when executing the code mentioned at https://pytest-html.readthedocs.io/en/latest/user_guide.html#modifying-the-results-table The issue gets resolved when the version of pytest-html was downgraded to 3.2.0 pytest Version: 7.2.2

rajeshkz avatar Mar 27 '23 13:03 rajeshkz

Thanks for reporting!

This has been fixed but not yet released. It will be part of the RC1 release.

Note that the fix is to remove the call to pop.

BeyondEvil avatar Mar 27 '23 14:03 BeyondEvil

Thanks for the update. Would this document be updated case the call to pop is removed? https://pytest-html.readthedocs.io/en/latest/user_guide.html#modifying-the-results-table

rajeshkz avatar Mar 27 '23 15:03 rajeshkz

Thanks for the update. Would this document be updated case the call to pop is removed? https://pytest-html.readthedocs.io/en/latest/user_guide.html#modifying-the-results-table

Yes, it's also on the branch: https://github.com/pytest-dev/pytest-html/blob/next-gen/docs/user_guide.rst#modifying-the-results-table

BeyondEvil avatar Mar 27 '23 15:03 BeyondEvil

Please try 4.0.0rc1 🙇

BeyondEvil avatar Apr 03 '23 20:04 BeyondEvil