Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Show surprise when tests are passing

Project description


pytest-pikachu prints ascii art of Surprised Pikachu when all tests pass.


Pass the --pikachu option to pytest as a command line flag or configuration file option to get these stunning effects.

$ pytest --pikachu
============================= test session starts ==============================
platform linux -- Python 3.7.1, pytest-5.1.3, py-1.8.0, pluggy-0.13.0
rootdir: /home/.../pytest-pikachu, inifile: tox.ini, testpaths: tests
plugins: pikachu-0.1.0
collected 4 items

tests/ ....                                                [100%]

============================== 4 passed in 0.25s ===============================


Prior art

I wrote this pytest plugin after seeing this Reddit thread. I used the answer in this Stack Overflow question on how to pass information between different pytest hooks.


Distributed under the terms of the MIT license, pytest-pikachu is free and open source software.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-pikachu, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_pikachu-0.1.0-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest-pikachu-0.1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page