Test dobles for Python.
Project description
Fork of https://www.github.com/uber/doubles with support for python 3.8+
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
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
Built Distribution
File details
Details for the file dobles-4.0.2.tar.gz
.
File metadata
- Download URL: dobles-4.0.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74edd601c4ea1feabdf3274740b6d1246f97159f0db94b04b25db9db0310992c |
|
MD5 | 535061953aef43a7122c27da7d151d64 |
|
BLAKE2b-256 | 8b9c29e1d61ba5584f6c005fc88e2d1492634b82227d9216529308cf61215386 |
File details
Details for the file dobles-4.0.2-py3-none-any.whl
.
File metadata
- Download URL: dobles-4.0.2-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55557b377980b72d78726e48b99fdf237a8c75d373ef4afe91cc45bbdd8cf5eb |
|
MD5 | 2847328cf344b60ce68e75949fb5e3ab |
|
BLAKE2b-256 | 6189865ccf374fe52ed5dcac721ecf6860a97045cd6e1e5125107952b382f9b8 |