We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pytest-clarity reduces clarity of the diff if two similar strings only have \n at the end as the difference.
pytest-clarity
\n
This is the normal pytest output (without any verbosity):
pytest
> assert 'Not enough operands\n' == 'Not enough operands' E AssertionError: assert 'Not enough operands\n' == 'Not enough operands' E - Not enough operands E + Not enough operands E ? +
That + at the end means that the first string has an LF at the end and the second one does not.
+
This is the pytest-clarity output (with triple vebosity):
> assert 'Not enough operands\n' == 'Not enough operands' E assert == failed. [pytest-clarity diff shown] E E LHS vs RHS shown below E E Not enough operands E
> assert 'Not enough operands' == 'Not enough operands\n' E assert == failed. [pytest-clarity diff shown] E E LHS vs RHS shown below E E Not enough operands E
The text was updated successfully, but these errors were encountered:
No branches or pull requests
pytest-clarity
reduces clarity of the diff if two similar strings only have\n
at the end as the difference.This is the normal
pytest
output (without any verbosity):That
+
at the end means that the first string has an LF at the end and the second one does not.This is the
pytest-clarity
output (with triple vebosity):The text was updated successfully, but these errors were encountered: