Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
.. image:: https://badge.fury.io/py/doubles.svg :target: http://badge.fury.io/py/doubles
.. image:: https://travis-ci.org/uber/doubles.svg?branch=master :target: https://travis-ci.org/uber/doubles
.. image:: https://readthedocs.org/projects/doubles/badge/?version=latest :target: https://doubles.readthedocs.io/en/latest/?badge=latest
.. image:: https://coveralls.io/repos/github/uber/doubles/badge.svg?branch=master :target: https://coveralls.io/github/uber/doubles?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 is available at http://doubles.readthedocs.org/en/latest/.
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
.
FAQs
Test doubles for Python.
We found that doubles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.