LoginSignup
7

More than 3 years have passed since last update.

posted at

pytest で logging のログを表示させる

pytest ですと, デフォルトで

import logging

によりログ出力されたメッセージが suppress されてしまいます.

$ pytest --log-cli-level=DEBUG ...

で強制的に logging のログメッセージを表示させることができます.

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
7