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 2 (Latest)

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.
b5b2d927b50d9fd98f8fb9e9bd2f4aa5fb2c0cba Christian Hammond
django_evolution/tests/base_test_case.py
django_evolution/tests/test_serialization.py
Loading...