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
@register
def test_adding_two_and_two():
assert 2 + 2 == 4
@register
def some_error_test():
assert 2 + 2 == 5
run()
Output: (To visible the highlighting, run on the command line)
Running [test_adding_two_and_two]... OK
Running [some_error_test]... FAILED:
Traceback (most recent call last):
File "E:\vladimir\Python\lest\src\lest\runner.py", line 23, in run
func()
File "E:\vladimir\Python\lest\src\test.py", line 11, in some_error_test
assert 2 + 2 == 5
AssertionError
Run 2 tests:
+ Successful: 1
+ Failed: 1
+ Time elapsed: 0.000
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.2.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
lest-0.2.0-py3-none-any.whl
(3.7 kB
view hashes)