Aspectlib

Latest version: v2.0.0

Safety actively analyzes 687881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

1.2.1

------------------

* Don't raise exceptions from ``Replay.__exit__`` if there would be an error (makes original cause hard to debug).

1.2.0

------------------

* Fixed weaving methods that were defined in some baseclass (and not on the target class).
* Fixed wrong qualname beeing used in the Story/Replay recording. Now used the alias given to the weaver instead of
whatever is the realname on the current platform.

1.1.1

------------------

* Use ``ASPECTLIB_DEBUG`` for every logger in ``aspectlib``.

1.1.0

------------------

* Added a `bind` option to :obj:`aspectlib.Aspect` so you can access the cutpoint from the advisor.
* Replaced automatic importing in :obj:`aspectlib.test.Replay` with extraction of context variables (locals and globals
from the calling :obj:`aspectlib.test.Story`). Works better than the previous inference of module from AST of the
result.
* All the methods on the replay are now properties: :obj:`aspectlib.test.Story.diff`,
:obj:`aspectlib.test.Story.unexpected` and :obj:`aspectlib.test.Story.missing`.
* Added :obj:`aspectlib.test.Story.actual` and :obj:`aspectlib.test.Story.expected`.
* Added an ``ASPECTLIB_DEBUG`` environment variable option to switch on debug logging in ``aspectlib``'s internals.

1.0.0

------------------

* Reworked the internals :obj:`aspectlib.test.Story` to keep call ordering, to allow dependencies and improved the
serialization (used in the diffs and the missing/unexpected lists).

0.9.0

------------------

* Changed :obj:`aspectlib.test.record`:

* Renamed `history` option to `calls`.
* Renamed `call` option to `iscalled`.
* Added `callback` option.
* Added `extended` option.

* Changed :obj:`aspectlib.weave`:

* Allow weaving everything in a module.
* Allow weaving instances of new-style classes.

* Added :obj:`aspectlib.test.Story` class for capture-replay and stub/mock testing.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.