surer
.. image:: https://img.shields.io/pypi/dm/surer :target: https://pypi.org/project/surer
.. image:: https://github.com/getmoto/surer/workflows/Sure%20Tests/badge.svg :target: https://github.com/getmoto/surer/actions?query=workflow%3A%22Sure+Tests%22
.. image:: https://img.shields.io/readthedocs/sure :target: https://surer.readthedocs.io/
.. image:: https://img.shields.io/github/license/getmoto/surer?label=Github%20License :target: https://github.com/getmoto/surer/blob/master/LICENSE
.. image:: https://img.shields.io/pypi/v/surer :target: https://pypi.org/project/surer
.. image:: https://img.shields.io/pypi/l/surer?label=PyPi%20License :target: https://pypi.org/project/surer
.. image:: https://img.shields.io/pypi/format/surer :target: https://pypi.org/project/surer
.. image:: https://img.shields.io/pypi/status/surer :target: https://pypi.org/project/surer
.. image:: https://img.shields.io/pypi/pyversions/surer :target: https://pypi.org/project/surer
.. image:: https://img.shields.io/pypi/implementation/surer :target: https://pypi.org/project/surer
An idiomatic testing library for python with powerful and flexible assertions, created by Gabriel Falcão <https://github.com/gabrielfalcao>.
Sure's developer experience is inspired and modeled after RSpec Expectations <http://rspec.info/documentation/3.5/rspec-expectations/> and
should.js <https://github.com/shouldjs/should.js>_.
This is a fork of Gabriel's sure library, maintained at http://github.com/getmoto/surer. It provides support for more recent Python-versions, but does not differ in functionality.
Installing
.. code:: bash
$ pip install surer
Documentation
Available in the website <https://surer.readthedocs.io/en/latest/>__ or under the
docs directory.
You can also build the documentation locally using sphinx:
.. code:: bash
make docs
Here is a tease
Equality
(number).should.equal(number)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code:: python
import surer
(4).should.be.equal(2 + 2)
(7.5).should.eql(3.5 + 4)
(3).shouldnt.be.equal(5)
Assert dictionary and its contents
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code:: python
{'foo': 'bar'}.should.equal({'foo': 'bar'})
{'foo': 'bar'}.should.have.key('foo').which.should.equal('bar')
"A string".lower().should.equal("a string") also works
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code:: python
"Awesome ASSERTIONS".lower().split().should.equal(['awesome', 'assertions'])
Metadata
Release files for surer 0.0.3
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 |
|---|---|---|---|---|
| surer-0.0.3.tar.gz | 45.8 kB | Without provenance | Details for surer-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| surer-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for surer-0.0.3-py3-none-any.whl |
Total release size: 80.6 kB
Release files / surer-0.0.3.tar.gz
| Download URL | surer-0.0.3.tar.gz |
|---|---|
| Size | 45.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6af001061b0c642a41fa08a535e87a1e5211a55c97e0511cdcdf4d62e337ae6
|
|
BLAKE2b-256 checksum How to use checksums |
e85b0f2790224af8619362df063eb567628f4ef07583d1dd223ecf8fca968ed2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / surer-0.0.3-py3-none-any.whl
| Download URL | surer-0.0.3-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff21a579db122745d0a126151801a757ddc624fd47aada8641f4b41da1e50117
|
|
BLAKE2b-256 checksum How to use checksums |
ac630415d1f791b65718f83914f157259af5faffc3df6e7d13ce9aa2cf8fbe4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for surer 0.0.3
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.