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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mock-4.0.1-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mock-4.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2a572b715f09dd2f0a583d8aeb5bb67d7ed7a8fd31d193cf1227a99c16a67bc3
MD5 8f48ba3fd059e7cfad92f8354064adfd
BLAKE2b-256 1cfd141c477591ab50e27cd16a4969c957f915f4fb3c6323a624c548f38b507f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mock-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e48d216809f6f393987ed56920305d8f3c647e6ed35407c1ff2ecb88a9e1151
MD5 66a71b713878af0fddc58df8dfaa5da2
BLAKE2b-256 306a9bde648117ec7087c89a45de0a8b25aba21d54d3defd08cb24eacded875f

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