veritas
Veritas is a Python library implementing a throwaway variable that attempts to return true no matter how it is called upon.
It is intended for writing tests where you must provide some variables to an interface but your particular test will never read what happens to them. Veritas attempts to make sure that whatever the side effects on these variables it will not derail program execution. It implements comparable, numeric, callable, container, iterator, binary, in-place, unary, context manager, and async interfaces.
Needing this is a smell, but it can help you get things moving without requiring you to refactor the whole system.
- Code:
- Issues:
- Releases:
- License:
BSD 3-clause; See LICENSE
Install
From PyPI
Run:
$ pip install veritas
For hacking
Run:
$ git clone https://github.com/lonnen/veritas # Create and activate virtualenvironment, left to the reader as an excercise $ pip install -r requirements-dev.txt
Usage
see tests for example usage
Metadata
Release files for veritas 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| veritas-0.1.12.tar.gz | 4.9 kB | Without provenance | Details for veritas-0.1.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| veritas-0.1.12-py3-none-any.whl | Python 3 | none | any | Details for veritas-0.1.12-py3-none-any.whl |
Total release size: 10.2 kB
Release files / veritas-0.1.12.tar.gz
| Download URL | veritas-0.1.12.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e8d589ff816997d2d86802a7217b0e2458c50872e2f428b62ad94211c4261c9
|
|
BLAKE2b-256 checksum How to use checksums |
9d812b81022035e22e58082ae9e8c20389165efe75b5ba3a64fe8dd316a51327
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / veritas-0.1.12-py3-none-any.whl
| Download URL | veritas-0.1.12-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d3fbee74c66a8d8523f5f4210eb0aa3beb6d02ec70f68a69fdbcddbbe7994af
|
|
BLAKE2b-256 checksum How to use checksums |
9cb842c7845c3705f542e9ea9fede5e915373f9389428f921edce42553354db5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for veritas 0.1.12
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.