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 2.7 and 3.4 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

Project details


Download files

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

Source Distribution

mock-3.0.5.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

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

mock-3.0.5-py2.py3-none-any.whl (25.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mock-3.0.5.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for mock-3.0.5.tar.gz
Algorithm Hash digest
SHA256 83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3
MD5 d834a46d9a129be3e76fdcc99751e82c
BLAKE2b-256 2eab4fe657d78b270aa6a32f027849513b829b41b0f28d9d8d7f8c3d29ea559a

See more details on using hashes here.

File details

Details for the file mock-3.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: mock-3.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for mock-3.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d157e52d4e5b938c550f39eb2fd15610db062441a9c2747d3dbfa9298211d0f8
MD5 0b273f0d265660e78e96b739c6a813b4
BLAKE2b-256 05d2f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9

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 Pingdom Monitoring Sentry Error logging StatusPage Status page