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.6 and up, and 3.2 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)

Issue tracker:

Github Issues

Build status:
https://travis-ci.org/testing-cabal/mock.svg?branch=master

Download files

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

Source Distribution

mock-1.3.0.tar.gz (70.9 kB view details)

Uploaded Source

Built Distribution

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

mock-1.3.0-py2.py3-none-any.whl (56.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mock-1.3.0.tar.gz
  • Upload date:
  • Size: 70.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mock-1.3.0.tar.gz
Algorithm Hash digest
SHA256 1e247dbecc6ce057299eb7ee019ad68314bb93152e81d9a6110d35f4d5eca0f6
MD5 73ee8a4afb3ff4da1b4afa287f39fdeb
BLAKE2b-256 9805dd44a19f1dd9f274baae2018b843d31fbeff99399114b16ac965b4f99269

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mock-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3f573a18be94de886d1191f27c168427ef693e8dcfcecf95b170577b2eb69cbb
MD5 4e5dae615e14f9e3b34aea4771b50e1a
BLAKE2b-256 b250664a70b87408bb6c14c1af2337efa64eb8d1af80c933531758b8fb41ec25

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