soft-assert

0

Описание

Soft assertions for Pytest / Python

Языки

  • Python100%
README.md

soft-asserts

Soft assertions for Python/Pytest

Installation

Usage

Assertion is performed immediately after the call

check()
, but the expected result is obtained only after exit the context manager
verify()

Quick example:

You can use asserts in loop:

Also you can use it with pytest parametrized tests:

Example of output:

More examples you can find in

test_example.py