Testfixtures

Latest version: v8.2.0

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

Scan your dependencies

Page 21 of 23

1.7.0

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

- fixed a bug where the replace decorator passed a classmethod
rather than the replacment to the decorated callable when replacing
a classmethod

- added set method to test_date, test_datetime and test_time to allow
setting the parameters for the next instance to be returned.

- added delta and delta_type parameters to test_date,test_datetime and
test_time to control the intervals between returned instances.

1.6.2

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

- changed Comparison to use __eq__ and __ne__ instead of the
deprecated __cmp__

- documented that order matters when using Comparisons with objects
that implement __eq__ themselves, such as instances of Django
models.

1.6.1

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

- replace and Replacer.replace can now replace attributes that may
not be present, provided the `strict` parameter is passed as False.

- should_raise now catches BaseException rather than Exception so
raising of SystemExit and KeyboardInterrupt can be tested.

1.6.0

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

- added support for using TempDirectory, Replacer and LogCapture as
context managers.

- fixed test failure in Python 2.6.

1.5.4

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

- fix bug where should_raise didn't complain when no exception
was raised but one was expected.

- clarified that the return of a should_raise call will be None
in the event that an exception is raised but no expected
exception is specified.

1.5.3

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

- should_raise now supports methods other than __call__

Page 21 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.