Fix regressions in some tests introduced in User Details support.
Review Request #14295 — Created Jan. 16, 2025 and submitted — Latest diff uploaded
As the User Details support evolved, some unit tests regressed. We were
making assumptions thatHttpRequest.local_site
would exist, and this
isn't always the case in unit tests. Some tests also weren't updated for
the newget_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.
reviewboard/accounts/templatetags/accounts.py |
---|
reviewboard/accounts/tests/test_template_tags.py |
---|