Skip to main content

BDD testing for Python

Project description

An assertion test generator for Python meant for use with or something that uses assert as a method for running tests. It uses function chaining to achieve very high readability and make BDD less tedious.

from requires.expect import expect




Requires is still work-in-progress and it’s API may change at anytime. However the changes shouldn’t be overly drastic. Once I have settled down to an API spec I will upload the package to PyPI and the changes should then be either bugfixes or mainly additions and optimizations.

You can now download the package with PIP, and it is available under the name Requires. Feel free to require it within any of your unit test suites. You can easily install the package with the following command:

$ pip install Requires


Requires uses a chainable object in order to create tests that are really concise and readable. It is meant for use in the BDD style, i.e.:

from requires.expect import expect
from library import function

res, err = function(0)

Project details

Download files

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

Files for Requires, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size Requires-0.0.3.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page