Light Python library for testing.
Project description
Lest
Light Python library for testing
Installing
See installing in documentation.
Usage
Example:
Code:
import lest
@lest.setup
def my_setup():
print('Setup ran!')
@lest.register
def test_adding_two_and_two():
lest.assert_eq(2 + 2, 4)
@lest.register
def some_error_test():
lest.assert_eq(2 + 2, 5) # AssertionError
@lest.register
def some_more_error():
lest.assert_eq(a + 2, 4) # NameError
lest.run(info_level='max')
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.7.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
lest-0.7.0-py3-none-any.whl
(5.7 kB
view hashes)