No project description provided
Project description
Python-Delayed-Assert
Delayed aka. Soft asserts for python - No Dependenices on any other framework. - Should work with any testing framework.
Install via pip:
pip install delayed-assert
Install from master:
pip install git+https://github.com/pr4bh4sh/python-delayed-assert
Import as:
from delayed_assert import delayed_assert
Uses with assert library:
Pass the asserting statement as
lambda: self.assertListEqual([4,5,6,2,5],[7,8])
While I've tested only with unittest asserttion,It should be able to use any assertion library.
Keep in mind that, Python lambda does not support statement inside lambda, so lambda: assert 1 == 1 won't work as it's not valid lambda expression
See ExampleUnittest.py
for usage.
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
delayed_assert-0.3.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for delayed_assert-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 186d5a42ad1beb7fa23269516b23fb0b976eef7fc1eb1c98ea3c0ebf0056cfe1 |
|
MD5 | d0919497a9115f07c543a8e0c0525286 |
|
BLAKE2b-256 | 7fbadce94ac90cc21298bf92ac6104e021792d33e887ddc0febc82c5c92da088 |