Skip to main content

an executable implementation of the throwaway `_`

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veritas-0.1.10.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veritas-0.1.10-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file veritas-0.1.10.tar.gz.

File metadata

  • Download URL: veritas-0.1.10.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for veritas-0.1.10.tar.gz
Algorithm Hash digest
SHA256 cd06cb65001626e6a34804dcecf7a0fc1dc3962700571f4eafcedaeb303c6a39
MD5 4205f8b0bfca79a10f09d32a965a3741
BLAKE2b-256 6e5c5b741f1d6794572537afb099f26263299ee298167984750aa2b23b3b3dbb

See more details on using hashes here.

File details

Details for the file veritas-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: veritas-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for veritas-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 21411734c970d4dc8426887ea4c3a367f0393c43598341d3591a0e5095308fc3
MD5 5211a099983c0038424d44ab0c4e0cc9
BLAKE2b-256 9e63a6a170bf7c5fab9bbc43ea17d32de81e5438ba64e07de6fc2f72334d5e05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page