From ebea5039687120b3e35487850b58a2f868f2bfca Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 25 Oct 2018 10:44:01 +0100 Subject: [PATCH] Reduce logging noise in traceback output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When running tests locally Pytest returns a lot of captured logging info. This is redundant because Pytest also captures stdout. This commit effectively disables logging output when running tests by setting the log level to higher than anything a real logging call would ever emit. The logging output is still captured by stdout, so nothing is lost here, we’re just reducing duplication. --- pytest.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/pytest.ini b/pytest.ini index 8ab99e048..a9b6c3bc3 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,6 @@ [pytest] testpaths = tests +log_level = 999 env = NOTIFY_ENVIRONMENT=test ADMIN_CLIENT_SECRET=dev-notify-secret-key