Skip to main content

BDD testing for Python

Project description

https://travis-ci.org/eugene-eeo/requires.png?branch=master

An assertion test generator for Python meant for use with nose.py 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

expect([]).to.be.a(list)
expect([]).to.be.empty()

expect(2).to.be.within(1,3)
expect(list).to.have.method('append')

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.

Project details


Release history Release notifications

History Node

0.0.3

History Node

0.0.2

This version
History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Requires-0.0.1.tar.gz (5.4 kB) Copy SHA256 hash SHA256 Source None Jan 26, 2014

Supported by

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