What is Fancytest?
Fancytest provides a decorator to test function call instances in your program. It will output the status of both failed and successful instances.
How to use Fancytest?
pip install fancytest
from fancytest import ftest # <-- IMPORT THE PACKAGE
@ftest # <-- ADD THE DECORATOR TO THE FUNCTION YOU WANT TO TEST (@ftest)
def add(a, b):
return a + b
@ftest # <-- ADD THE DECORATOR TO THE FUNCTION YOU WANT TO TEST (@ftest)
def squared(a):
return a * a
# FAIL
f = add(2, "b")
squared(f)
# SUCCESS
s = add(1,2)
squared(s)
Fancytest will output all instances with their parameters and status.
INSTANCE: add(2, 'b') : FAILED
ERROR: unsupported operand type(s) for +: 'int' and 'str'
INSTANCE: squared(None) : FAILED
ERROR: unsupported operand type(s) for *: 'NoneType' and 'NoneType'
INSTANCE: add(1, 2) : SUCCESS
TIME: 0.000ms
INSTANCE: squared(3) : SUCCESS
TIME: 0.000ms
Metadata
Release files for fancytest 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 |
|---|---|---|---|---|
| fancytest-1.1.tar.gz | 2.1 kB | Without provenance | Details for fancytest-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fancytest-1.1-py3-none-any.whl | Python 3 | none | any | Details for fancytest-1.1-py3-none-any.whl |
Total release size: 4.5 kB
Release files / fancytest-1.1.tar.gz
| Download URL | fancytest-1.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec4b2cfd8e2d312b88fa082142d1836933de2d79ddfe288e36452974ca9d9469
|
|
BLAKE2b-256 checksum How to use checksums |
b87989c6e8e61a7c844969e470eea2c15c20907ac0c84ebdf8abe77629fdf92c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.9
|
Release files / fancytest-1.1-py3-none-any.whl
| Download URL | fancytest-1.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62a92021a15fe3ffa79b204b1e56a5c45e09c1589a5e3b2ef79423b80525eeaf
|
|
BLAKE2b-256 checksum How to use checksums |
2e255ed80be74ceea3d664b90f6fa8cdc481acc97048ccad9c7f1faf69e76382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.9
|
Security for fancytest 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.