django-health-check icon indicating copy to clipboard operation
django-health-check copied to clipboard

Improve test reliability by cleaning the state pollution of test_warning in TestMainView

Open sturmianseq opened this issue 3 years ago • 0 comments

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.

sturmianseq avatar Aug 06 '21 04:08 sturmianseq