Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Uploaded Source

File details

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

File metadata

  • Download URL: mock-4.0.0b1.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.0 CPython/3.7.6

File hashes

Hashes for mock-4.0.0b1.tar.gz
Algorithm Hash digest
SHA256 b1bc607824a30bb4c3315a833d7817c1f01e0658c85710236d537e699b853493
MD5 82c59b460a2a1fd9d51c1860f691c6d5
BLAKE2b-256 ca52940140c7bd917c7f3c83c3cb9edbf77dec97f75030d7251ec53b35248acb

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