You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitMate.io thinks possibly related issues are #753 (Missing example test), #1599 (Ability to disable capture from within a test), #3125 (Incremental testing from example in documentation), and #1527 (show deselected info after collected info and before test execution).
7artur7
changed the title
[Question] How to disable INFO, DEBUG logs of the lib that is used in a test method (for example requests/urllib3)
Couldn't disable INFO, DEBUG logs of the lib that is used in a test method (for example requests/urllib3)
Jun 21, 2018
Hey.
Consider next example:
when i launch it i see
INFO
,DEBUG
logs from urllib3How can i disable it for tests?
I've tried increasing log level of the lib. Add this to the top of the file:
but I still see logs in Terminal.
I've tried to handle it with
caplog
:but still same result.
Is there a way to completely remove this logs? The only info i need to see in Terminal in my case is an assertion error:
I don't need logs of the request methods, statuses etc.
pip list
pytest 3.6.1 Mac OS 10.13.2
The text was updated successfully, but these errors were encountered: