Skip to main content

Assert Info

Assert Info fixes up bare assert statements in your code so they include diagnostics when they they’re hit.

A problem that crops up when working in legacy code bases is the use of assert X == Y, when this fails you get minimal diagnostics.

Whilst Pytest solves this by playing with AST at run time, inserting diagnostics on the fly, you can’t just run all your code with Pytest.

The standard libraries unittest solves this problem with helper functions that include extra diagnostics by default, for instance assertEqual.

This package will inspect any file and replace assert statement which aren’t accompanied by a message with a unittest style assertion so that when it fails you get diagnostics!

To run the script:

pip install assert-info
assert-info -h

Metadata

Release files for assert-info 0.2.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 assert-info 0.2.1
File Size Uploaded Provenance Actions
assert-info-0.2.1.tar.gz 4.8 kB Without provenance Details for assert-info-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assert-info 0.2.1
File Interpreter ABI Platform Actions
assert_info-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for assert_info-0.2.1-py2.py3-none-any.whl

Total release size: 10.3 kB

Release files / assert-info-0.2.1.tar.gz

Download URL assert-info-0.2.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
63d41ffee4bb6a1a284b7c077f64cac3e203f376458060ddaba8c9d497640823
BLAKE2b-256 checksum
How to use checksums
9d1f3b2d977b6a3dc1b45fad6a0e2fc3873d5ebab19289157d8241162a9fa775
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.6.9 Linux/5.3.0-46-generic

Release files / assert_info-0.2.1-py2.py3-none-any.whl

Download URL assert_info-0.2.1-py2.py3-none-any.whl
Size 5.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f9ab6a6c05e230f0e713cd244ce9439ecabd54ef6cd45859e33ccb1be0967aae
BLAKE2b-256 checksum
How to use checksums
2e0396c32abed08ac7e04a23d23639f9e269115b22e8d0cb94f05aa0d321394d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.6.9 Linux/5.3.0-46-generic

Security for assert-info 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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