Skip to main content

A short little plugin to find where a mock was called!

Project description

Project generated with PyScaffold PyPI-Server GitHub Test CI Monthly Downloads

mock-call-where

A short little plugin to find where a mock was called!

How to Use

This library is setup as a pytest plugin, so if you’re using pytest you can just add the mock_where fixture in your tests. If you’d like to always have it enabled…

Manually Enabling/Disabling

from mock_call_where.override import AdvancedCall

AdvancedCall.apply()
...  # The plugin is enabled now
AdvancedCall.unapply()

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

pip install pre-commit
cd mock-call-where
pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Don’t forget to tell your contributors to also install and use pre-commit.

Note

This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.

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_call_where-1.0.2.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

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

mock_call_where-1.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file mock_call_where-1.0.2.tar.gz.

File metadata

  • Download URL: mock_call_where-1.0.2.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for mock_call_where-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b61bc50b03af8fc2afe48e08739d40a2561ccfe9eca30cd91473d48123f54d07
MD5 daa71f1d51ca75db31082b7f15024e7a
BLAKE2b-256 e9c46054f455853f13f68bce1a62077be513cab93ad32e307e8c05e2df7f1d32

See more details on using hashes here.

File details

Details for the file mock_call_where-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mock_call_where-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6bcccc437ac6fd104ff7e189db3ba356139eea750732ca19e93f482f27717541
MD5 35336cdd46ca2b24eafaed544c6e529f
BLAKE2b-256 0133e4ab79c74f2ee2b7d580373827497846cd41eb7c7ef7c2569b7075a320fb

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