Skip to content

Fix/1512 - improve truncated assertion output #1949

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

Closed

Conversation

mattduck
Copy link
Contributor

Improve user experience for #1512. Removes common items from dictionary comparisions when verbosity=1. Also updates truncation format:

screen shot 2016-09-19 at 14 14 41

@flub let me know what you think re: the new formatting

Part one of pytest-dev#1512.

If verbosity=1, assertion explanations are truncated at 10 lines. In this
situation, it's more important to tell the user which dictionary items are
different than which are the same.
Part two of pytest-dev#1512. Update the format
of the truncation message to help make it clear that pytest truncates the
entire assertion output when verbosity < 2.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0008%) to 93.08% when pulling 52ccb7e on mattduck:fix/1512-dict-compare-output into 8639bf7 on pytest-dev:master.

@flub
Copy link
Member

flub commented Sep 19, 2016

Looks great, just re-target to featues and then it can be merged

@mattduck
Copy link
Contributor Author

Thanks @flub, have moved this here: #1951

@mattduck mattduck closed this Sep 19, 2016
@The-Compiler
Copy link
Member

Note you can also change the target branch of an open PR on GitHub since a few weeks: https://help.github.com/articles/changing-the-base-branch-of-a-pull-request/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants