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.0.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.0.tar.gz.
File metadata
- Download URL: flextest-1.0.0.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 |
a435d5834c6681e39ba0d94fe2be858220c2ecd23d459a0b2cfbd04c8d21dcae
|
|
| MD5 |
36287a15e04f59f9ae20b1cea853f0f5
|
|
| BLAKE2b-256 |
d4115f2ca57745d269ed22bf154c1008cf189270d15b5a0ca6430ca86e5b18f0
|
File details
Details for the file flextest-1.0.0-py3-none-any.whl.
File metadata
- Download URL: flextest-1.0.0-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 |
fec35f30d3d12576f96abe066db37d129fb676fa1aacee7b2d38b15a6f1e5317
|
|
| MD5 |
17743ea5e4c74d5e182f2897c8d3cec5
|
|
| BLAKE2b-256 |
c8576a6525593cce6c437bc852145101d99244ab5733da8ce440a387df01e091
|