Remove double Q(Q(...)) objects when comparing in Profile unit tests.

Review Request #12358 — Created June 10, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-5.0.x

Reviewers

A fix is in for Djblets to avoid an annoying quirk with Django where a
filter() operation can create a nested Q(Q(...)). This was annoying
to compare, and Djblets now normalizes that.

This updates the Profile unit tests to do the same.

Unit tests pass.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Remove double Q(Q(...)) objects when comparing in Profile unit tests.
A fix is in for Djblets to avoid an annoying quirk with Django where a `filter()` operation can create a nested `Q(Q(...))`. This was annoying to compare, and Djblets now normalizes that. This updates the `Profile` unit tests to do the same.
576acb020adeef2b789419902f238950bc539972 Christian Hammond
reviewboard/accounts/tests/test_profile.py
Loading...