Chainmock

Latest version: v1.0.0

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

Scan your dependencies

Page 2 of 3

0.8.0

Changed

- Set name to unittest mocks for better error messages.
- Raise AttributeError if async asserts called without AsyncMock.

Fixed

- Fix mocking chained async methods and properties.

0.7.1

Added

- Export `mock.AnyOf` helper class.

0.7.0

Added

- Use force_property=True always with kwargs.

Fixed

- Fix spying **init** method fails.

0.6.0

Added

- Add support for mocking module variables.
- Add `force_async` parameter to `Mock.mock` method.

0.5.1

Added

- Return self when Mock is called directly.

0.5.0

Added

- Add `force_property` parameter to `Mock.mock` method.
- Convert kwargs to properties for stubs without a spec.
- Implement property mocking with patching.

Fixed

- Fix stub assertions not executed.

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.