Intercept and record calls to functions
84.89 KB
built 2026-10-17 10:39:14 GMT
Description
Ever deal with a large test suite before, monkey patching functions to figure
out whether it was called as expected? It’s a dirty job. If you’re not careful,
you can make a mess of things. Leave behind evidence.
kgb’s spies will take care of that little problem for you.
What are spies? Spies intercept and record calls to functions. They can report
on how many times a function was called and with what arguments. They can allow
the function call to go through as normal, to block it, or to reroute it to
another function.
Spies are awesome.
(If you’ve used Jasmine, you know this.)
Spies are like mocks, but better. You’re not mocking the world. You’re
replacing very specific function logic, or listening to functions without
altering them.
Dependencies
13 totalRequires11
- pyproject-rpm-macros
- python3-devel
- python3-devel
- python3-pytest
- python3-setuptools
- python3dist(packaging)
- python3dist(pip) >= 19
- python3dist(setuptools) >= 40.8
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
Provides2
- python3-kgb = 7.1.1-12.fc45
- python3-kgb-tests = 7.1.1-12.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| kgb-7.1.1.tar.gz | 60.06 KB |
| python-kgb.spec | 3.56 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
