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

Uploaded Source

Built Distribution

mock-3.0.2-py2.py3-none-any.whl (25.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mock-3.0.2.tar.gz
  • Upload date:
  • Size: 25.2 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.2.tar.gz
Algorithm Hash digest
SHA256 a209c68c921778e55116c001ac1b13f4c45a87c8eb770008b10ea3aeaca7fd5b
MD5 82361f33194d8adfff56280086561ef9
BLAKE2b-256 47e6d48108c4afbb955845069a8cbc60551308ce7e2b6129abdd8f08283a1917

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mock-3.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.3 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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b9998885b396aea8bad4aa34e0dee402c78bd00c038facb5eba7050c9497b3c
MD5 b560730f1c2c78da634559c3fbfceb72
BLAKE2b-256 915b896efa5c4532f3012c754e5d94a815490c7f579baa72af5a142b81f88a56

See more details on using hashes here.

Supported by

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