Skip to main content

A easy-to-use Python unit testing library, designed for beginners and ready to use out of the box.

Project description

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

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flextest-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for flextest-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a435d5834c6681e39ba0d94fe2be858220c2ecd23d459a0b2cfbd04c8d21dcae
MD5 36287a15e04f59f9ae20b1cea853f0f5
BLAKE2b-256 d4115f2ca57745d269ed22bf154c1008cf189270d15b5a0ca6430ca86e5b18f0

See more details on using hashes here.

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

Hashes for flextest-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fec35f30d3d12576f96abe066db37d129fb676fa1aacee7b2d38b15a6f1e5317
MD5 17743ea5e4c74d5e182f2897c8d3cec5
BLAKE2b-256 c8576a6525593cce6c437bc852145101d99244ab5733da8ce440a387df01e091

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page