No project description provided
Project description
Free software: MIT license
Documentation: https://pyispy.readthedocs.io.
Testing helper utility for monitoring calls to functions and methods (spying).
Example
import my_module
import pyispy
def my_ClassA():
reports = []
pyispy.wiretap(my_module.ClassA, ["__init__", "exec"], reports)
obj = my_module.ClassA()
assert "__init__" in reports
TODO
Refactor hooks as classes to contract input arguments (object, function name, logbook) to support polymorphic attitude in process_request.
- Implement/test wiretap on magic methods
Handle response to read-only functions (for example __add__ in int type)
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
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
pyispy-0.1.2.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for pyispy-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 920a43c2e5487a76fd4cb25ed0fccadb685daf3daae69801d0f303f8102db2cd |
|
MD5 | 253079410a098df691ae257081cf55ca |
|
BLAKE2b-256 | c70659d93dc7b48e527cb87ac6dfffc19dc098b91d6d99412a0df33f4bf0c823 |