Testfixtures

Latest version: v8.3.0

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

Scan your dependencies

Page 20 of 23

1.11.1

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

- Fix bug where :meth:`testfixtures.datetime.MockDateTime.now` didn't accept the `tz`
parameter that :meth:`datetime.datetime.now` did.

1.11.0

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

- Give more useful output when comparing dicts and their subclasses.

- Turn :class:`should_raise` into a decorator form of
:class:`ShouldRaise` rather than the rather out-moded wrapper
function that it was.

1.10.0

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

- Remove dependency on ``zope.dottedname``.

- Implement the ability to mock out :class:`dict` and :class:`list`
items using :class:`~testfixtures.Replacer` and
:func:`~testfixtures.replace`.

- Implement the ability to remove attributes and :class:`dict`
items using :class:`~testfixtures.Replacer` and
:func:`~testfixtures.replace`.

1.9.2

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

- Fix for issue 328: :meth:`~testfixtures.datetime.MockDateTime.utcnow` of :any:`test_datetime <mock_datetime>`
now returns items from the internal queue in the same way as
:meth:`~testfixtures.datetime.MockDateTime.now`.

1.9.1

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

- Fix bug when :class:`ShouldRaise` context managers incorrectly
reported what exception was incorrectly raised when the incorrectly
raised exception was a :class:`KeyError`.

1.9.0

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

- Added ``TestComponents`` for getting a sterile
registry when testing code that uses ``zope.component``.

Page 20 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.