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://coveralls.io/repos/uber/doubles/badge.png

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

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-0.0.1.beta3.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file doubles-0.0.1.beta3.tar.gz.

File metadata

  • Download URL: doubles-0.0.1.beta3.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for doubles-0.0.1.beta3.tar.gz
Algorithm Hash digest
SHA256 579d3ac96de28558e80906b5fb437b5107f5ac4ef16d006ea42ba1f88e3d65e9
MD5 144a6cad7bf771356b8f3b9fdc128ef3
BLAKE2b-256 7e625599ce4d14f30e05249e02ed26a0b30f181ca3b057b4b951b42d1445d74c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page