Register type equality checks for Q and F objects.

Review Request #12039 — Created Feb. 4, 2022 and submitted — Latest diff uploaded

Information

Django Evolution
release-2.x

Reviewers

TestCase now registers the existing assertQEqual() and a new
assertFEqual() for comparing Q and F objects. This enables
comparison without having to explicitly call those helper methods. This
simplifies unit testing and reduces the chances of issues on different
versions of Django.

Unit tests pass for all supported versions of Python and Django.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

Commits

First Last Summary ID Author
Register type equality checks for Q and F objects.
`TestCase` now registers the existing `assertQEqual()` and a new `assertFEqual()` for comparing `Q` and `F` objects. This enables comparison without having to explicitly call those helper methods. This simplifies unit testing and reduces the chances of issues on different versions of Django.
ea4f4f8e44aab2b2aa0d3512f3a84fdc59e34dd8 Christian Hammond
django_evolution/tests/base_test_case.py
django_evolution/tests/test_serialization.py
Loading...