Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Test failures are better served with humor.

Project description


Build Status Requirements Status Pyversions PyPI

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


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 .F                                                          [100%]

=================================== FAILURES ===================================
_________________________________ test_failed __________________________________

    def test_failed():
>       assert 1 == 2
E       assert 1 == 2 AssertionError
====================== 1 failed, 1 passed in 0.03 seconds ======================

There are two ways to write error-free programs; only the third one works.


  • make the plugin configurable: turn on/off, language, joke category, number of jokes


Distributed under the terms of the MIT license, pytest-joke is free and open source software.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-joke, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pytest_joke-0.1.1-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest-joke-0.1.1.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page