• 
      

    Rewrite HealthCheckViewTests to not override CACHES.

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

    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.

    Summary ID
    Rewrite HealthCheckViewTests to not override CACHES.
    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`. Testing Done: Ran unit tests and saw that everything passed.
    knynxrwwwssnpmpzzuxmsxtptzyvqqwo
    Description From Last Updated

    Leftover debugging.

    chipx86chipx86
    chipx86
    1. 
        
    2. djblets/util/views.py (Diff revision 1)
       
       
      Show all issues

      Leftover debugging.

    3. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-5.x (66f6aaa)