FlexTest
A easy-to-use Python unit testing library, designed for beginners and ready to use out of the box.
📦 Installation
pip install FlexTest
📜 Changelog
See CHANGELOG.md
QuickStart
from FlexTest import TestEq, TestIs, TestEr, TestCustom, summary
# Basic equality test
TestEq("Addition test", lambda a, b: a + b, 2, 3, expected=5)
# Object identity test
TestIs("Singleton test", lambda: None, expected=None)
# Exception test
TestEr("Division by zero test", lambda a, b: a / b, 1, 0, expected_exception=ZeroDivisionError)
# Custom test
TestCustom("Even number test", lambda x: x % 2 == 0, 4)
# Output test results
summary()
Metadata
Release files for FlexTest 1.0.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 |
|---|---|---|---|---|
| flextest-1.0.1.tar.gz | 3.3 kB | Without provenance | Details for flextest-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flextest-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for flextest-1.0.1-py3-none-any.whl |
Total release size: 7.1 kB
Release files / flextest-1.0.1.tar.gz
| Download URL | flextest-1.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7554d9beab7c1981491af77f511ced355ae7596b67069656d3d5fdecd4d865f
|
|
BLAKE2b-256 checksum How to use checksums |
f76d9481b3de15c26716b85423c85518a97817ab0661418cd8b07b0860461850
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.9 Windows/11
|
Release files / flextest-1.0.1-py3-none-any.whl
| Download URL | flextest-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0da6dc00e1d94ec780e4433e715728cf88dcb72c37193f22109202db20b2d9e
|
|
BLAKE2b-256 checksum How to use checksums |
654a3570473f3b68f176b17d577279368d6f8dc946907930f3ea9531317b3759
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.9 Windows/11
|
Security for FlexTest 1.0.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.