No project description provided
Project description
[![Build Status](https://api.travis-ci.org/okorolev/pytest-soft-assertions.svg?branch=master)](https://travis-ci.org/okorolev/pytest-soft-assertions) [![image](https://img.shields.io/pypi/v/pytest-soft-assertions.svg)](https://pypi.org/project/pytest-soft-assertions/) ### About This project is experimental. First version written in 25.11.2018.
### Usage `bash py.test --soft-asserts `
### Output `bash 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
Hashes for pytest-soft-assertions-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ba25d3070b6539bd564cf9ebefbcd9270dbe2c200efa387d78fe10cfa353ab |
|
MD5 | 1babf2f2ee1c60b53287ea2f48aaf889 |
|
BLAKE2b-256 | d8a6b4eac3c0712aa5053eaca3be38430decc31b3b6c35f7fa1011c11b443939 |
Hashes for pytest_soft_assertions-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf4a1bab68cb641658a2334288ea775c726295bfb479a78c9ec3e2839e9c530 |
|
MD5 | 0148362c10760209a5afb87b84df0fcf |
|
BLAKE2b-256 | faf766219289d8c8def90dc8a4f922490a631463f16d3e255e43d3a7cb2c7f5b |