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

Uploaded Source

Built Distribution

mock-5.0.1-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mock-5.0.1.tar.gz
  • Upload date:
  • Size: 77.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for mock-5.0.1.tar.gz
Algorithm Hash digest
SHA256 e3ea505c03babf7977fd21674a69ad328053d414f05e6433c30d8fa14a534a6b
MD5 1d784d53f9a2ecd8c8284fe93349beaa
BLAKE2b-256 a9c87f5fc5ee6a666d7e4ee7a3222bcb37ebebaea3697d7bf54517728f56bb28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mock-5.0.1-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for mock-5.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c41cfb1e99ba5d341fbcc5308836e7d7c9786d302f995b2c271ce2144dece9eb
MD5 29d4401f0bceb4294cea56cefa1b6360
BLAKE2b-256 e6888a05e7ad0bb823246b2add3d2e97f990c41c71a40762c8db77a4bd78eedf

See more details on using hashes here.

Supported by

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