Skip to main content

Test dobles for Python.

Project description

Fork of https://www.github.com/uber/doubles with support for python 3.8+

https://badge.fury.io/py/dobles.svg https://readthedocs.org/projects/dobles/badge/?version=latest https://coveralls.io/repos/github/smartfastlabs/dobles/badge.svg?branch=master

dobles 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 dobles. It comes with drop-in support for test suites run by Pytest or standard unittest.

Documentation

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

Development

Source code is available at https://github.com/smartfastlabs/dobles.

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

dobles-4.0.1.tar.gz (18.2 kB view hashes)

Uploaded Source

Built Distribution

dobles-4.0.1-py3-none-any.whl (26.0 kB view hashes)

Uploaded Python 3

Supported by

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