Rewrite HealthCheckViewTests to not override CACHES.

Review Request #14612 — Created Sept. 12, 2025 and submitted — Latest diff uploaded

Information

Djblets
release-5.x

Reviewers

Apparently, using @override_settings(CACHES=...) is not safe, and can
break later tests even though the setting is restored. This change
updates our view to encapsulate the cache checking in a couple methods
which can be safely spied on instead, the same way we do for
DATABASES.

Ran unit tests and saw that everything passed.

Commits

Files