Skip to main content
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.

License

MIT: http://opensource.org/licenses/MIT

Release files for doubles 1.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doubles 1.5.3
File Size Uploaded
doubles-1.5.3.tar.gz 16.8 kB Details

Release files / doubles-1.5.3.tar.gz

Download URL doubles-1.5.3.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3332349ea9683dc65f5866362f9f27b25cd35b1ad239db3c9d83ca5473665eba
BLAKE2b-256 checksum
How to use checksums
414651d6d6b10dd6aa982aa7efa30d5285cfbda70026aa0f52c512024a52ae11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.15
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page