Skip to main content

StrongMock is a powerful mocking library for Python that leverages low-level ctypes functionality to provide extensive mocking capabilities. Some care may be needed while using this.

Project description

StrongMock

StrongMock is a powerful mocking library for Python that leverages low-level ctypes functionality to provide extensive mocking capabilities. Some care may be needed while using this.

Functionality

This will patch the __code__ attribute of a function with your new function, meaning that references will also have the functionality of mock. This can occasionally be extremely convenient.

Usage

instead of unittest.mock.patch use strongmock.strongpatch

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

strongmock-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

strongmock-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file strongmock-0.0.1.tar.gz.

File metadata

  • Download URL: strongmock-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for strongmock-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3d1bd0448328cd5164de5395aec96062f33dd8d1449ef34d846472501977dbfb
MD5 2de9d287ea04064cbdc9af901540f6eb
BLAKE2b-256 91ec8f6ed16565002c777821c9ab6c72fe1971af0e27f46d75008f9a0733a994

See more details on using hashes here.

File details

Details for the file strongmock-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: strongmock-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for strongmock-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 335087064f1ebf349321ad5a5458f8ae28d182e5a5e41bab06c1c305e3f7207c
MD5 c88b096f02a8dcd94d2d5a6fabeaefeb
BLAKE2b-256 64cd2fb48155d4492501edcb83c718d201f188ca9b41062c492f53b48dfd9888

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