Show surprise when tests are passing
Project description
pytest-porcochu
Like pytest-pikachu but it's a pikachuified pig.
pytest-porcochu prints ascii art of Surprised Porco when all tests pass.
Installation
$ pip install pytest-porcochu
Usage
Pass the --porcochu option to pytest as a command line flag or configuration
file option to get these stunning effects.
$ pytest --porcochu
============================= test session starts ==============================
platform linux -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/.../pytest-porcochu, configfile: tox.ini, testpaths: tests
plugins: porcochu-0.1.0
collected 4 items
tests/test_plugin.py .... [100%]
============================== 4 passed in 0.11s ===============================
)\ /|
.-/'-|_/ |
__ __,-' ( / \/
.-'" "'-..__,-'"" -o.`-._
/ '/
*--._ ./ _.--
| _.-'
: .-/
\ )_ /
\ _) / \(
`. /-.___.---'( / \\
( / \\ \( L\
\( L\ \\
\\ \\
L\ L\
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.
License
Distributed under the terms of the MIT license, pytest-porcochu is free and
open source software.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_porcochu-1.1.0.tar.gz.
File metadata
- Download URL: pytest_porcochu-1.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a1d12c88d0a278110891c3830d9ef22217d4cf3b36ca5362c739cad793ed322
|
|
| MD5 |
c8b639ff5617c5e63d88ac8e3d558ebe
|
|
| BLAKE2b-256 |
4a71b70b2c33d1ad99485749e66ad7d99d41401da6cafafea67c43fb95d4c608
|
File details
Details for the file pytest_porcochu-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pytest_porcochu-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44a1ec18bc5041984e1799dd44afcafd523ab0beb12d9aa74b79f643e97e80f0
|
|
| MD5 |
6251f91e582dcd7c7bc686a2e9027877
|
|
| BLAKE2b-256 |
05a05508ee24f0803b7a27a6d02dcd072683655738b37ffa2c884ae852b52cd1
|