aboutsummaryrefslogtreecommitdiffstats
path: root/tests/_autospec.py (follow)
Commit message (Collapse)AuthorAgeLines
* Replace mock._importer with pkgutil.resolve_name in test autospecGravatar shtlrs2023-03-29-1/+2
| | | | mock._importer was removed in 3.11
* Tests: optionally prevent autospec helper from passing mocksGravatar MarkKoz2020-08-17-0/+64
Not everything that's decorated needs the mocks that are patched. Being required to add the args to the test function anyway is annoying. It's especially bad if trying to decorate an entire test suite, as every test would need the args. Move the definition to a separate module to keep things cleaner.