No project description provided
Project description
About
This project is experimental. First version written in 25.11.2018.
Usage
py.test --soft-asserts
Output
py.test examples/test_all_asserts.py --soft-asserts
E AssertionError:
E +-------------------------+-----------------+------------------+---------------+
E | expression | condition | current value | expected |
E +=========================+=================+==================+===============+
E | assert value == 1 | == | -1 | 1 |
E +-------------------------+-----------------+------------------+---------------+
E | assert 1 == 2 | == | 1 | 2 |
E +-------------------------+-----------------+------------------+---------------+
E | assert 'Kek' is None | is | Kek | None |
E +-------------------------+-----------------+------------------+---------------+
E | assert object is None | is | <class 'object'> | None |
E +-------------------------+-----------------+------------------+---------------+
E | assert None is not None | is not | None | is not None |
E +-------------------------+-----------------+------------------+---------------+
E | assert 1 is None | is | 1 | None |
E +-------------------------+-----------------+------------------+---------------+
E | assert 1 in [2, 2] | in | 1 | in [2, 2] |
E +-------------------------+-----------------+------------------+---------------+
E | assert 1 not in [1, 2] | not in | 1 | not in [1, 2] |
E +-------------------------+-----------------+------------------+---------------+
E | assert 4 in orders | in | 4 | in [1, 2, 3] |
E +-------------------------+-----------------+------------------+---------------+
E | assert None or False | or | None | <Not None> |
E +-------------------------+-----------------+------------------+---------------+
E | assert not True | not | True | <Not None> |
E +-------------------------+-----------------+------------------+---------------+
E | assert {} | <Not condition> | {} | <Not None> |
E +-------------------------+-----------------+------------------+---------------+
E | assert None | <Not condition> | None | <Not None> |
E +-------------------------+-----------------+------------------+---------------+
E | assert 1 > 1 | > | 1 | > 1 |
E +-------------------------+-----------------+------------------+---------------+
E | assert 1 < 1 | < | 1 | < 1 |
E +-------------------------+-----------------+------------------+---------------+
E | assert 1 >= 2 | >= | 1 | >= 2 |
E +-------------------------+-----------------+------------------+---------------+
E | assert 2 <= 1 | <= | 2 | <= 1 |
E +-------------------------+-----------------+------------------+---------------+
E | assert 1 != 1 | != | 1 | != 1 |
E +-------------------------+-----------------+------------------+---------------+
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
Built Distribution
Close
Hashes for pytest-soft-assertions-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061545adf003d0bdb8d05ee16dbc580b56583b5ad224d93a4096b201464de330 |
|
MD5 | bc24dea0b7b5740cd649f40712c0f677 |
|
BLAKE2b-256 | ec7817120dcac966169d317a35ffb2848416523862353f8ab522681bf41dc470 |
Close
Hashes for pytest_soft_assertions-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e858cebbf69d88196926e3b2e37711642adaad84cecdd035e4b75ba0290252 |
|
MD5 | 1d0814eabd7003ae40796c43669f76fa |
|
BLAKE2b-256 | 0bce7c37e1532802acb7dcb2081ec53935eee89f3675df60ff8b5f797a3a8919 |