pytest-joke 0.1.1

Last updated:

0 purchases

pytest-joke 0.1.1 Image
pytest-joke 0.1.1 Images
Add to Cart

Description:

pytestjoke 0.1.1

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.