Skip to main content

Rolling backport of unittest.mock for all Pythons

Project description

mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.

mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards.

This package contains a rolling backport of the standard library mock code compatible with Python 3.6 and up.

Please see the standard library documentation for more details.

Homepage:

Mock Homepage

Download:

Mock on PyPI

Documentation:

Python Docs

License:

BSD License

Support:

Mailing list (testing-in-python@lists.idyll.org)

Code:

GitHub

Issue tracker:

GitHub Issues

Build status:

CircleCI Docs

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mock-5.1.0.tar.gz (80.2 kB view details)

Uploaded Source

Built Distribution

mock-5.1.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file mock-5.1.0.tar.gz.

File metadata

  • Download URL: mock-5.1.0.tar.gz
  • Upload date:
  • Size: 80.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for mock-5.1.0.tar.gz
Algorithm Hash digest
SHA256 5e96aad5ccda4718e0a229ed94b2024df75cc2d55575ba5762d31f5767b8767d
MD5 85adffd925b6ade6988c07ca5ef9deba
BLAKE2b-256 66ab41d09a46985ead5839d8be987acda54b5bb93f713b3969cc0be4f81c455b

See more details on using hashes here.

File details

Details for the file mock-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: mock-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for mock-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18c694e5ae8a208cdb3d2c20a993ca1a7b0efa258c247a1e565150f477f83744
MD5 e21ec8194df51784e685f868dc0a8496
BLAKE2b-256 6b20471f41173930550f279ccb65596a5ac19b9ac974a8d93679bcd3e0c31498

See more details on using hashes here.

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