Skip to main content

softest - Soft Assertions

Supports the soft assert style of testing, where multiple assertions can fail within the same method, while collecting and formatting those failures' stack traces for reporting by a final assert_all call.

Such stack traces are enhanced to include the call hierarchy from within the test class.

Usage

import softest

class ExampleTest(softest.SoftTestCase):
	def test_example(self):
		self.soft_assert(self.assertEqual, 'Worf', 'wharf', 'Klingon is not ship receptacle')
		self.soft_assert(self.assertTrue, True)
		self.soft_assert(self.assertTrue, False)

		self.assert_all()

Metadata

Release files for softest 1.0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for softest 1.0.0.1
File Size Uploaded
softest-1.0.0.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for softest 1.0.0.1
File Interpreter ABI Platform
softest-1.0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / softest-1.0.0.1.tar.gz

Download URL softest-1.0.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9d316727a07d1b0dafd01083e850f0f0e61c774f454b2f99c41537bcda1c393b
BLAKE2b-256 checksum
How to use checksums
7571a77f338eea138ff28a771c7e9b1c78d16402377fdf451c7f4fe5f596501b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / softest-1.0.0.1-py3-none-any.whl

Download URL softest-1.0.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69852ead7c3e8a16d595861240a694e0704587cd5e890f374edfdcc3310439c1
BLAKE2b-256 checksum
How to use checksums
c9c545922705c673401260d37dcdf94dc9d5a16a5e706b9e31e146ce01a51fdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.0.1

2 release files

This release

1.0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page