A pytest plugin that plays the fahhh meme sound when a test fails.
Project description
pytest-fahhh
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, thenmpg123 - 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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8749f8281c5ceb0584a6822e76c221511b6efbc567ab77c28e3e44b3d78c655a
|
|
| MD5 |
2bf33aee2491f79d6abe809fe234650e
|
|
| BLAKE2b-256 |
bcac629e57f49e6b8930dd17d0d8abf86402b96baf37ed85022bf36acf7acff8
|
Provenance
The following attestation bundles were made for pytest_fahhh-0.1.0.tar.gz:
Publisher:
release.yml on samiashi/pytest-fahhh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_fahhh-0.1.0.tar.gz -
Subject digest:
8749f8281c5ceb0584a6822e76c221511b6efbc567ab77c28e3e44b3d78c655a - Sigstore transparency entry: 1316952795
- Sigstore integration time:
-
Permalink:
samiashi/pytest-fahhh@3a1d6c78a86c4b239a07dfe34f09cc0256b80944 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/samiashi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3a1d6c78a86c4b239a07dfe34f09cc0256b80944 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9020939c79885cc096eceff13fdc43a9f7e89522a22c69644ccdd0ba7e35aa80
|
|
| MD5 |
4c5b47fbad6a17b028474116cd43e0f2
|
|
| BLAKE2b-256 |
a7f97f6f8f16f67618962e75bcaead8ea9b175513f2520e810cfabd80ec35270
|
Provenance
The following attestation bundles were made for pytest_fahhh-0.1.0-py3-none-any.whl:
Publisher:
release.yml on samiashi/pytest-fahhh
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_fahhh-0.1.0-py3-none-any.whl -
Subject digest:
9020939c79885cc096eceff13fdc43a9f7e89522a22c69644ccdd0ba7e35aa80 - Sigstore transparency entry: 1316952804
- Sigstore integration time:
-
Permalink:
samiashi/pytest-fahhh@3a1d6c78a86c4b239a07dfe34f09cc0256b80944 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/samiashi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3a1d6c78a86c4b239a07dfe34f09cc0256b80944 -
Trigger Event:
push
-
Statement type: