Fix regressions in some tests introduced in User Details support.

Review Request #14295 — Created Jan. 16, 2025 and submitted — Latest diff uploaded

Information

Review Board
release-7.1.x

Reviewers

As the User Details support evolved, some unit tests regressed. We were
making assumptions that HttpRequest.local_site would exist, and this
isn't always the case in unit tests. Some tests also weren't updated for
the new get_user_badges() signature.

This change updates the logic to conditionally fetch this information
and to update unit tests for the modern function signature.

All unit tests pass.

Commits

Files