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.0.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.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_fahhh-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8749f8281c5ceb0584a6822e76c221511b6efbc567ab77c28e3e44b3d78c655a
MD5 2bf33aee2491f79d6abe809fe234650e
BLAKE2b-256 bcac629e57f49e6b8930dd17d0d8abf86402b96baf37ed85022bf36acf7acff8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_fahhh-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_fahhh-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9020939c79885cc096eceff13fdc43a9f7e89522a22c69644ccdd0ba7e35aa80
MD5 4c5b47fbad6a17b028474116cd43e0f2
BLAKE2b-256 a7f97f6f8f16f67618962e75bcaead8ea9b175513f2520e810cfabd80ec35270

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_fahhh-0.1.0-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