Nrt-pytest-soft-asserts

Latest version: v1.1.3

Safety actively analyzes 715081 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.0.7

Fix bug in Python 3.8 support.

1.0.6

Support Python 3.8.

1.0.5

New Features

Assert methods return True if assertion passes, False if assertion fails.

Example:
python
from nrt_pytest_soft_asserts.soft_asserts import SoftAsserts

soft_asserts = SoftAsserts()


def test_assert_equal():
result is True
result = soft_asserts.assert_equal(1, 1)
result is False
result = soft_asserts.assert_equal(1, 2)
soft_asserts.assert_all()


def test_is_not_none():
result is True
result = soft_asserts.assert_is_not_none(1)
result is False
result = soft_asserts.assert_is_not_none(None)
soft_asserts.assert_all()

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.