Light Python library for testing.
Project description
Lest
Light Python library for testing
Example:
Code:
import lest
@lest.register
def test_adding_two_and_two():
assert 2 + 2 == 4
@lest.register
def some_error_test():
assert 2 + 2 == 5
lest.run()
Output:
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.1.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
lest-0.1.0-py3-none-any.whl
(3.5 kB
view hashes)