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

Remove depreciation warning when printing Result object.

Open hmgaudecker opened this issue 2 years ago • 0 comments

While fixing the depreciation warnings in my project I could not silence one where I was printing the Result object. Changing __repr__ to '<Result {}>'.format(result.project_path.name) is the only substantive change, the rest are fixes of tests in accordance with this.

__repr__(result.project) now seems to have the absolute path -- I commented out the respective test, which checks that it holds the name only. This might require a serious fix.

Hope this helps, else just ignore!

hmgaudecker avatar Jan 04 '22 10:01 hmgaudecker