utility belt for automated testing in python for python


Keywords
bdd, behavior-driven-development, python3, software-craftsmanship, tdd, test, test-automation, test-driven-development
Licenses
GPL-3.0/GPL-3.0+
Install
pip install sure==1.4.8

Documentation

sure

https://img.shields.io/pypi/dm/sure 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'])