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.

Code:

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

Issues:

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

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.8.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

veritas-0.1.8-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: veritas-0.1.8.tar.gz
  • Upload date:
  • Size: 4.8 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.8.tar.gz
Algorithm Hash digest
SHA256 012e60c736dde84d7b6ce2a99c07edcd62379ae82629d772ace4ad8594b1de46
MD5 bf61bf029ef1e8cb846a35f3522f6171
BLAKE2b-256 27708fad591c5dd8471786dd4f4271e3a7ca5b3a05d74b620c004b99d92b8d92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: veritas-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6c3057b38c6c1f9c5947d461c57a92159a735db1efa44a87db4524fba7f47586
MD5 1263dbb7add3098e3b3ceb86066db8c7
BLAKE2b-256 e28f1c8d8db63abfcdbc9cbc9066a2624bf8160aec76eee89b9c1451fbb01f29

See more details on using hashes here.

Supported by

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