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 details)
Built Distribution
lest-0.1.0-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file lest-0.1.0.tar.gz
.
File metadata
- Download URL: lest-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f24e7aa2eaa525f4f8d3858d74042f5cc32ca327f86e29c0c853c11c0c8d8e7 |
|
MD5 | f7f255351118daefbd43c2a717e20abf |
|
BLAKE2b-256 | a8445ec043459b6b270cd940a3975d8d152b21b9e1a6901c8fc720c97a9ba456 |
File details
Details for the file lest-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eca5aa5ae86090f0b9d3f8d926ed6231602d3f9cfd796bbc06134d19d71508b |
|
MD5 | c972a8b0fe7d275e202f052e7505273f |
|
BLAKE2b-256 | 871724e7554d580b69e2f280ddfd23c9c2cef7a2edd69b553efbbb1831631260 |