Skip to main content

FlexTest

License: MIT

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()

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)

Source distribution for FlexTest 1.0.1
File Size Uploaded
flextest-1.0.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FlexTest 1.0.1
File Interpreter ABI Platform
flextest-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page