Skip to main content

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.

Build Status

Code:

https://github.com/lonnen/veritas/

Issues:

https://github.com/lonnen/veritas/issues

Releases:

https://pypi.org/project/veritas/#history

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

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)

Source distribution for veritas 0.1.12
File Size Uploaded
veritas-0.1.12.tar.gz 4.9 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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