Skip to main content

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.

Download files

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

Source Distribution

pytest_porcochu-1.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_porcochu-1.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest_porcochu-1.1.1.tar.gz.

File metadata

  • Download URL: pytest_porcochu-1.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.2

File hashes

Hashes for pytest_porcochu-1.1.1.tar.gz
Algorithm Hash digest
SHA256 caed46b40e27c7a8cca7bdf30e21e83c71c7bc3570fc5cc8797fbf77872378e2
MD5 b44fdf941fde57fb91ebacda4de3e89a
BLAKE2b-256 8e894ae88610da5ea739ec9f0eea888dd524fbe51908eec9754420a073e65423

See more details on using hashes here.

File details

Details for the file pytest_porcochu-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_porcochu-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 638a832c36841041a7843315d57a17c2d1152bce1cbd8d6c1de7dd00f0e68c71
MD5 c6f37a47f0a1ccb14fee5fe20e423bbb
BLAKE2b-256 919327493aaadcfa3d2b72584b9bc85938168590d208c69611140bea83835a76

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 files

1.1.0

2 files

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page