No project description provided
Project description
[![Build Status](https://api.travis-ci.org/okorolev/pytets-soft-assertions.svg?branch=master)](https://travis-ci.org/okorolev/pytets-soft-assertions) [![image](https://img.shields.io/pypi/v/pytets-soft-assertions.svg)](https://pypi.org/project/pytets-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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0859f8a0297052ed046c7f98342eb6d05f54d67942b835f227a7047a8d9c0f8a |
|
MD5 | 7f29f991378d05b249ae9370395d4d00 |
|
BLAKE2b-256 | 9992c298392e56562d9ed1044ad1a9c43d03d113cca3bfd134f225d5eded6cd8 |
Hashes for pytest_soft_assertions-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f620ce5ac776d8d22c0bbc200279043427a51d67f39866d754f81e7c6904b368 |
|
MD5 | 3de64c4de59e3459f13ab7f7c0a5be31 |
|
BLAKE2b-256 | 28e628d80c137f83de49af9ac153b8b697ee87e5781c6d65a1172db58545b6d9 |