Skip to main content

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

Uploaded Source

File details

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

File metadata

  • Download URL: mock-4.0.0.tar.gz
  • Upload date:
  • Size: 71.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.8.0 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for mock-4.0.0.tar.gz
Algorithm Hash digest
SHA256 8fff3fd7c5796ea78ae2847f32e87ad4e111e03fef6e90d03b5efb4882211d78
MD5 2bc5fed17018566a7bbdec85389ffaab
BLAKE2b-256 4422877b93e0e137bf57ed4ec73cd10bbbe2a900cd2a180c74bc86511394ab7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page