pytest-joke
Running tests is better with some healthy (or not) amount or humor! 😃
This is a completely useless plugin created to get some practice in creating plugins for Pytest.
Powered by pyjokes.
Installation 🐍
You can install pytest-joke via pip from PyPI:
$ pip install pytest-joke
Usage
When the plugin is installed, every time a test run results in a failure, the terminal would output a random joke in an attempt to cheer you up.
Humor-powered output enabled 😃.
plugins: mock-1.10.4, joke-0.1.0
collected 2 items
test_joke.py .F [100%]
=================================== FAILURES ===================================
_________________________________ test_failed __________________________________
def test_failed():
> assert 1 == 2
E assert 1 == 2
test_joke.py:7: AssertionError
====================== 1 failed, 1 passed in 0.03 seconds ======================
There are two ways to write error-free programs; only the third one works.
TODO
- make the plugin configurable: turn on/off, language, joke category, number of jokes
License
Distributed under the terms of the MIT license, pytest-joke is free and open source software.
Motivation
Metadata
Release files for pytest-joke 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-joke-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for pytest-joke-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_joke-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pytest_joke-0.1.1-py3-none-any.whl |
Total release size: 7.9 kB
Release files / pytest-joke-0.1.1.tar.gz
| Download URL | pytest-joke-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df5aa2a5d2dbce36d46359b83b27575d996e32dc96218bc249dba3a84298f87a
|
|
BLAKE2b-256 checksum How to use checksums |
a1beb1f82041bebe49e43bd2b42ab16a4dab9ff80b67e3cd8e9c5f61f9580e30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Release files / pytest_joke-0.1.1-py3-none-any.whl
| Download URL | pytest_joke-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fda93b1a581bb0eefa4c414773d6c237e06dba50365e53a517a35facae3f0a9f
|
|
BLAKE2b-256 checksum How to use checksums |
26a7d258d21752b472ccf52880970ef22f531d75a10e1dbd234ab3e855ae269a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Security for pytest-joke 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.