Skip to main content

Light Python library for testing.

Project description

Lest

Light Python library for testing

Installing

Just enter in command line:

pip install lest

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.4.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

lest-0.4.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

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