Skip to main content

Test doubles for Python.

Project description

https://badge.fury.io/py/doubles.svg https://travis-ci.org/uber/doubles.svg?branch=master https://readthedocs.org/projects/doubles/badge/?version=latest https://coveralls.io/repos/github/uber/doubles/badge.svg?branch=master

Doubles is a Python package that provides test doubles for use in automated tests.

It provides functionality for stubbing, mocking, and verification of test doubles against the real objects they double. In contrast to the Mock package, it provides a clear, expressive syntax and better safety guarantees to prevent API drift and to improve confidence in tests using doubles. It comes with drop-in support for test suites run by Pytest, Nose, or standard unittest.

Documentation

Documentation is available at http://doubles.readthedocs.org/en/latest/.

Development

Source code is available at https://github.com/uber/doubles.

To install the dependencies on a fresh clone of the repository, run make bootstrap.

To run the test suite, run make test.

To build the documentation locally, run make docs.

Project details


Download files

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

Source Distribution

doubles-1.5.3.tar.gz (16.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page