Skip to main content

Light Python library for testing.

Project description

Lest

Light Python library for testing

Installing

See installing in documentation.

Usage

Example:

Code:

from lest import register, run, setup
from lest.assertions import assert_eq


@setup
def my_setup():
    print('Setup ran!')


@register
def test_adding_two_and_two():
    assert_eq(2 + 2, 4)


@register
def some_error_test():
    assert_eq(2 + 2, 5)  # AssertionError


@register
def some_more_error():
    assert_eq(a + 2, 4)  # NameError


run()

Output (to visible the highlighting, it's a print-screen):

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

lest-0.5.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

lest-0.5.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file lest-0.5.0.tar.gz.

File metadata

  • Download URL: lest-0.5.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for lest-0.5.0.tar.gz
Algorithm Hash digest
SHA256 88e82933b17cbd19c3361736416a08349cf610e6f59d474696432817e75f9522
MD5 be2fb2e29d5f078b1f0798bb977553a2
BLAKE2b-256 ebb61fdb7caf25c2898800b97cd9d3368963af398cb2a0f1476f22e220d3e3ed

See more details on using hashes here.

File details

Details for the file lest-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: lest-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for lest-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cef2136ee205c9f1faa7f1fd3ec4866e1ceffce885516dd95abffc8aa4fa829
MD5 65434b79e77fdb2e6a6a5d34103f5265
BLAKE2b-256 fdfe77389491ab8c6e90dc1911fc8ec89bb2d3fbe995be157eb8e64483167d9d

See more details on using hashes here.

Supported by

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