GH avatar Bite 246. Test print / standard output

In this Bite you test a function that prints to stdout. Check out pytest's Capturing of the stdout/stderr output how to test this. You probably want to use the capsys / capfd fixture in your test code.

Have fun and keep calm and code in Python!

Login and get coding
go back Beginner level
Bitecoin 2X

71 out of 75 users completed this Bite.
Will you be Pythonista #72 to crack this Bite?
Resolution time: ~32 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 2.2 on a 1-10 difficulty scale.
» You can do it! 😌

We use Python 3.7