Skip to content

Add configuration for Django assertion diff length - #1313

Open
avenet wants to merge 6 commits into
pytest-dev:mainfrom
avenet:issue-1155-configure-max-diff
Open

Add configuration for Django assertion diff length#1313
avenet wants to merge 6 commits into
pytest-dev:mainfrom
avenet:issue-1155-configure-max-diff

Conversation

@avenet

@avenet avenet commented Aug 29, 2026

Copy link
Copy Markdown

Summary

  • add the django_asserts_max_diff pytest configuration option
  • support None for unlimited diffs while preserving the default of 640
  • document pytest.ini and pyproject.toml usage

Testing

  • pytest tests/test_asserts.py -q

Closes #1155

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.

No obvious way to set self.maxDiff with pytest_django.asserts

1 participant