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
Release history Release notifications | RSS feed
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.1.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lest-0.7.1-py3-none-any.whl
(5.7 kB
view details)
File details
Details for the file lest-0.7.1.tar.gz.
File metadata
- Download URL: lest-0.7.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54450abd689880c78e20e66db402eb6e369fad62215e0510cd86f102fc2001e8
|
|
| MD5 |
856cbe18648ab9ed9a2489a0bf57cb83
|
|
| BLAKE2b-256 |
97acccb2bb8833a38290d7f84ca040eb4263746cee3fe462d18f4c1e6e631030
|
File details
Details for the file lest-0.7.1-py3-none-any.whl.
File metadata
- Download URL: lest-0.7.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e96b88f4d4b2534d51be85833bbd70c3ce23bb567f586211edd4373a11440365
|
|
| MD5 |
7b9f96113fbcec9e1165465606dc9dd5
|
|
| BLAKE2b-256 |
85db2517e6cf72b0fc8208dd622d0d1c5541bb7ec497aa535b5d7a5497c273dd
|