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.0.0.tar.gz (76.3 kB view details)

Uploaded Source

Built Distribution

mock-5.0.0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mock-5.0.0.tar.gz
Algorithm Hash digest
SHA256 fd552787228eb2ab8352f270470fa93c9ad8b9cbc565c5558ee3faed8edb3853
MD5 aeef4309adce542c8dcd1001ecf201a2
BLAKE2b-256 49b008a3b7bb3b6c0eaae355edca4201a3d887406c03f2e4f10e5f28936bb8ac

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mock-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 335ef0bf9bcd27505c0c1720d4eac2783f18d07d6f45ac49542b57885a1996dd
MD5 ad11a3dcbf2db1e07759daffb0f613c2
BLAKE2b-256 cb0f235a2fcf3d33e2deef144a792836e3d3dbdda21ca39f0106f8d51db19ebb

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