pytest-yuk
A pytest plugin that allows you to visualize tests you are not proud of, using 🤢 for pass, 🤮 for fail.
Installation
$ pip install pytest-yuk
Usage
Mark tests with @pytest.mark.yuk:
import pytest
@pytest.mark.yuk
def test_pass():
assert 1 == 1
@pytest.mark.yuk
def test_fail():
assert 1 == 2
def test_pass_unmarked():
assert 1 == 1
def test_fail_unmarked():
assert 1 == 2
Then run with --yuk:
$ pytest --yuk --tb=no test_yuk.py
========================= test session starts ==========================
collected 4 items
test_yuk.py 🤢🤮.F [100%]
===================== 2 failed, 2 passed in 0.02s ======================
Or --yuk -v:
$ pytest --yuk -v --tb=no test_yuk.py
========================= test session starts ==========================
collected 4 items
test_yuk.py::test_pass PASSED 🤢 [ 25%]
test_yuk.py::test_fail FAILED 🤮 [ 50%]
test_yuk.py::test_pass_unmarked PASSED [ 75%]
test_yuk.py::test_fail_unmarked FAILED [100%]
===================== 2 failed, 2 passed in 0.02s ======================
No output changes are made without the --yuk flag:
$ pytest --tb=no test_yuk.py
========================= test session starts ==========================
collected 4 items
test_yuk.py .F.F [100%]
===================== 2 failed, 2 passed in 0.02s ======================
Similar project
This plugin was inspired by these other fine plugins:
Other pytest plugins from okken:
- pytest-check: Allows multiple failures per test.
- pytest-srcpaths: A plugin to help pytest find the code you want to test, by adding specified paths to
sys.path.
Metadata
Release files for pytest-yuk 0.0.1.post2
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-yuk-0.0.1.post2.tar.gz | 4.2 kB | Without provenance | Details for pytest-yuk-0.0.1.post2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_yuk-0.0.1.post2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pytest_yuk-0.0.1.post2-py2.py3-none-any.whl |
Total release size: 7.5 kB
Release files / pytest-yuk-0.0.1.post2.tar.gz
| Download URL | pytest-yuk-0.0.1.post2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
829b06662402eb47cc3778c5e484ba7b787bbfd1f0fb458060bed0d9dbea94dd
|
|
BLAKE2b-256 checksum How to use checksums |
c97474391ca00516a3f794c0990e87682cf6cd740e5514041cda5dceb36f4e17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / pytest_yuk-0.0.1.post2-py2.py3-none-any.whl
| Download URL | pytest_yuk-0.0.1.post2-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
386154f5ab69bcec3e4eb6c78d5b13c8148e69e41a33aade89089eb7c06a2b9a
|
|
BLAKE2b-256 checksum How to use checksums |
5510a3cfae6e38fcf4768493d728f8446519dd69de0e1005120dafa9198233b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Security for pytest-yuk 0.0.1.post2
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.