Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lonnen/veritas
a Python implementation of a variable that attempts to return True no matter how it is called upon
https://github.com/lonnen/veritas
Last synced: about 1 month ago
JSON representation
a Python implementation of a variable that attempts to return True no matter how it is called upon
- Host: GitHub
- URL: https://github.com/lonnen/veritas
- Owner: lonnen
- License: bsd-3-clause
- Created: 2017-04-01T04:05:18.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T06:02:02.000Z (about 1 year ago)
- Last Synced: 2024-09-19T09:19:28.494Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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|
.. |Build Status| image:: https://github.com/lonnen/veritas/actions/workflows/main.yml/badge.svg?branch=main
:target: https://github.com/lonnen/veritas/actions/workflows/main.yml: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 LICENSEInstall
=======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.txtUsage
=====see tests for example usage