A easy-to-use Python unit testing library, designed for beginners and ready to use out of the box.
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flextest-1.0.1.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flextest-1.0.1.tar.gz.
File metadata
- Download URL: flextest-1.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7554d9beab7c1981491af77f511ced355ae7596b67069656d3d5fdecd4d865f
|
|
| MD5 |
4831fb98d4d7674b0a23cb4b0da926ba
|
|
| BLAKE2b-256 |
f76d9481b3de15c26716b85423c85518a97817ab0661418cd8b07b0860461850
|
File details
Details for the file flextest-1.0.1-py3-none-any.whl.
File metadata
- Download URL: flextest-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.9 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0da6dc00e1d94ec780e4433e715728cf88dcb72c37193f22109202db20b2d9e
|
|
| MD5 |
bd5b57f678788ddc7d95f3cabe9d9f3a
|
|
| BLAKE2b-256 |
654a3570473f3b68f176b17d577279368d6f8dc946907930f3ea9531317b3759
|