A short little plugin to find where a mock was called!
Project description
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
Release history Release notifications | RSS feed
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.1.tar.gz
(21.9 kB
view hashes)
Built Distribution
Close
Hashes for mock_call_where-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b410cd67df8792edab9e02d975ed55a7f6e9f9bee7cdd115232ccb91e6907892 |
|
MD5 | 06cad96b5eae87ba02af6a573c99df87 |
|
BLAKE2b-256 | 057b1c941ecdd6834d66d3469e013aa11ce11aeba4613579128708d62043bfa6 |