Skip to content

Commit

Permalink
Clean the state pollution of test_warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sturmianseq committed Aug 6, 2021
1 parent d08200d commit a9bf24e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def check_status(self):
assert response.status_code == 200, response.content.decode('utf-8')
assert response['content-type'] == 'text/html; charset=utf-8'
assert b'so so' in response.content, response.content
HEALTH_CHECK['WARNINGS_AS_ERRORS'] = True

def test_non_critical(self, client):
class MyBackend(BaseHealthCheckBackend):
Expand Down

0 comments on commit a9bf24e

Please sign in to comment.