Skip to main content

Show surprise when tests are passing

Project description


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


$ pip install pytest-pikachu


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.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/.../pytest-pikachu, configfile: tox.ini, testpaths: tests
plugins: pikachu-0.1.0
collected 4 items

tests/ ....                                                [100%]

============================== 4 passed in 0.11s ===============================


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.

Source Distribution

pytest-pikachu-1.0.0.tar.gz (3.7 kB view hashes)

Uploaded source

Built Distribution

pytest_pikachu-1.0.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page