Chainmock

Latest version: v0.11.0

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

Scan your dependencies

Page 3 of 3

0.4.0

Added

- Support setting properties for stubs with spec.

Fixed

- Fix stubs are cached.

0.3.0

Added

- Implement `Assert.any_await_with` method.
- Implement `Assert.any_call_with` method.
- Implement `Assert.all_awaits_with` method.
- Implement `Assert.all_calls_with` method.
- Implement `Assert.match_args_last_await` method.
- Implement `Assert.match_args_last_call` method.
- Implement `Assert.match_args_any_await` method.
- Implement `Assert.match_args_any_call` method.
- Implement `Assert.match_args_all_awaits` method.
- Implement `Assert.match_args_all_calls` method.
- Implement `Assert.get_mock` method.
- Add ANY_TYPE argument matching helpers.

Fixed

- Prevent spying or mocking the same attribute twice.
- Fix await count mixed with call count.

0.2.0

Added

- Implement spying.
- Add called at least and at most modifiers.
- Support mocking and spying mangled methods.
- Support mocking and spying proxies.
- Support mocking non-existing attributes.
- Support spying async methods and functions.
- Add stdlib re-exports.
- Test Python and Pytest versions using tox.

0.1.0

Initial release.

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.