Releases: ollipa/chainmock
Releases · ollipa/chainmock
v0.11.0
Added
- Stubs with spec pass isinstance test with the spec object.
Changed
- Raise an
AttributeError
if return_value
or side_effect
is called when
spying.
Fixed
- Fix spec defined as a list of strings fails with
AttributeError
.
Infrastructure
- Add Pytest 8 to the test matrix.
v0.10.0
Added
- Add
Mock.get_mock
method.
- Add support for mocking class attributes.
- Add support for mocking instance attributes.
Changed
- Patch
TextResult
class instead of TextTestResult
class in unittest
integration.
Infrastructure
- Add CI testing for Python 3.13.
- Update Readthedocs configuration.
v0.9.0
Added
- Add
unittest
integration.
Changed
- Remove
pytest
from dependencies. Chainmock now works also with unittest
so pytest
is not a required dependency anymore.
Removed
- Drop support for pytest v6.0 and v6.1.
Infrastructure
- Add pypy3.10 to tox test run.
Documentation
- Add overview, user guide, contributing and changelog sections to documentation.
v0.8.2
- Raise an exception if non-callables are spied.
v0.8.1
- Fix mocks leak to next test if pytest setup fails.
v0.8.0
- Set name to unittest mocks for better error messages.
- Raise AttributeError if async asserts called without AsyncMock.
- Fix mocking chained async methods and properties.
v0.7.1
- Export
mock.AnyOf
helper class
v0.7.0
- Use force_property=True always with kwargs
- Fix spying
__init__
method fails
v0.6.0
- Add support for mocking module variables
- Add
force_async
parameter to Mock.mock
method
v0.5.1
- Return self when Mock is called directly