Test failures are better served with humor.
Project description
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.
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
pytest-joke-0.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for pytest_joke-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4408908573d8da266508493d3131b6314a562fe94e924b85f1ba2e44cad53036 |
|
MD5 | 1b2c50b9cd3cd3e248e32487f86ec77f |
|
BLAKE2b-256 | 1e9e571a46ece5e0fe83dd18cf1011635fcffe66987ed1ba9351d01b4bd14d38 |