django-health-check
django-health-check copied to clipboard
Improve test reliability by cleaning the state pollution of test_warning in TestMainView
This PR aims to improve test reliability by cleaning the state pollution in TestMainView.test_warning
. HEALTH_CHECK['WARNINGS_AS_ERRORS']
is set to TRUE
by default, but test_warning
changes it to be FALSE
. The fix is to restore the default value after running the test.