pytest-cookies
pytest-cookies copied to clipboard
Remove depreciation warning when printing Result object.
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!