Skip to main content

A pytest plugin that plays the fahhh meme sound when a test fails.

Project description

pytest-fahhh

CI PyPI version License: MIT

pytest-fahhh is a tiny pytest plugin that plays a bundled fahhh.mp3 whenever a test fails.

Install it, keep running pytest like normal, and every failed test call gets the meme sound effect.

Install

If your project uses uv:

uv add --dev pytest-fahhh

If your project uses pip:

pip install pytest-fahhh

Pytest auto-discovers the plugin through the pytest11 entry point, so there is no extra setup after install. The important part is that pytest-fahhh must be installed in the same environment where you run pytest.

Usage

Run pytest as usual:

pytest

When a test fails during its call phase, pytest-fahhh launches the bundled audio clip in the background.

Disable It

Disable it for one run:

pytest --no-fahhh

Disable it through the environment:

PYTEST_FAHHH_DISABLE=1 pytest

Disable it in pytest.ini:

[pytest]
fahhh = false

Platform Notes

  • macOS: uses afplay
  • Linux: tries paplay, aplay, ffplay, then mpg123
  • Other platforms: installs fine, but the plugin currently warns and does nothing because no player command is configured yet

Local Development

uv sync
make lint
make test

Run the intentional sound demo:

make demo-sound

Project details


Download files

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

Source Distribution

pytest_fahhh-0.1.1.tar.gz (25.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_fahhh-0.1.1-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest_fahhh-0.1.1.tar.gz.

File metadata

  • Download URL: pytest_fahhh-0.1.1.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytest_fahhh-0.1.1.tar.gz
Algorithm Hash digest
SHA256 924dea1fff93717e7ddd64989292174b9ffa03598cb83f869153ea7018a229b9
MD5 92f10ca8068006db1590f01a9af3cced
BLAKE2b-256 7e389879727be8a4b9b2017913a65799cd787a5808318a8079ec5978eb047262

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_fahhh-0.1.1.tar.gz:

Publisher: release.yml on samiashi/pytest-fahhh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytest_fahhh-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_fahhh-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pytest_fahhh-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a04836005143ad8d003bac0aee847a776e187686cf02605ca663a396eaa7780
MD5 25cd42bc86759342c29122200dc9218e
BLAKE2b-256 df7e4f9ab0baa945045da4a734c117a0cd8bd5b93ce034934c885d5489fd5450

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_fahhh-0.1.1-py3-none-any.whl:

Publisher: release.yml on samiashi/pytest-fahhh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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