Skip to main content

sophisticated automated test library and runner

Project description

https://img.shields.io/pypi/dm/sure https://github.com/gabrielfalcao/sure/workflows/Sure%20Tests/badge.svg https://img.shields.io/readthedocs/sure https://img.shields.io/github/license/gabrielfalcao/sure?label=Github%20License https://img.shields.io/pypi/v/sure https://img.shields.io/pypi/l/sure?label=PyPi%20License https://img.shields.io/pypi/format/sure https://img.shields.io/pypi/status/sure https://img.shields.io/pypi/pyversions/sure https://img.shields.io/pypi/implementation/sure https://img.shields.io/github/v/tag/gabrielfalcao/sure

The sophisticated automated test tool for Python, featuring a test runner and a library with powerful and flexible assertions.

Originally authored by Gabriel Falcão.

Installing

pip install sure

Running tests

sure tests

For More Information:

sure --help

Documentation

Available on sure.readthedocs.io.

To build locally run:

make docs

Quick Library Showcase

from sure import expects

expects(4).to.be.equal(2 + 2)
expects(7.5).to.be.eql(3.5 + 4)

expects(3).to.not_be.equal(5)
expects(9).to_not.be.equal(11)
from sure import expects

expects({'foo': 'bar'}).to.equal({'foo': 'bar'})
expects({'foo': 'bar'}).to.have.key('foo').being.equal('bar')
"Awesome ASSERTIONS".lower().split().should.equal(['awesome', 'assertions'])

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

sure-3.0a1.tar.gz (89.1 kB view hashes)

Uploaded Source

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