Output ASCII art to console on succesfull pytest run
I'm using pytest to run tests in Django project. I'm using pytest.ini where DJANGO_SETTINGS_MODULE is defined, so I run tests with just: pytest Now, I want to add some ASCII art to the console output if the test run is successful. I know I can do: pytest && cat ascii_art.txt But I want to hide the ASCII art to config or somewhere else so that I keep running tests with just pytest . I don't see any pytest config option I can use. Any other ideas how this could be done? There are lots of places where you can print your own stuff in pytest ; select an appropriate hook from the hooks list and