Fixtures

Latest version: v4.1.0

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

Scan your dependencies

Page 1 of 6

4.1.0

~~~~~

* Drop support for Python 3.6 (EOL)
(Stephen Finucane)

* Add a new ``WarningsFilter`` filter, allowing users to filter warnings as
part of their tests, before restoring said filters.
(Stephen Finucane)

4.0.1

~~~~~

* Remove ``testtools`` from ``requirements.txt`` as well.
(Colin Watson)

4.0.0

~~~~~

* Add missing APIs to ``FakeProcess``, making it match ``Popen``.
(Free Ekanayaka, 1373224)

* Dropped support for Python 2.7, Python 3.4 and Python 3.5 (EOL).
(Hugo van Kemenade)

* Added support for Python 3.6-3.10.
(Free Ekanayaka, Stephen Finucane, Colin Watson)

* Add possibility to reset the ``FakeLogger``. (Balazs Gibizer)

* Access ``mock.DEFAULT`` lazily rather than at import time so ``mock`` can
be overridden with something else. (Jelmer Vernooij)

* Support all ``subprocess.Popen`` arguments up to Python 3.10.
(Jürgen Gmach, Colin Watson)

* Move ``testtools`` requirement to a new ``fixtures[streams]`` extra.
(Colin Watson)

3.0.0

~~~~~

* Monkeypatching of callables has been thoroughly overhauled: there were deep
flaws in usability because staticmethod and classmethods are actually
descriptors. (Andrew Laski, Robert Collins)

2.0

~~~

* Monkeypatching of staticmethod's now works correctly on Python 2 and 3.
This is an API break as previously they were bound as instancemethods's
and thus any working patches need to have their first parameter (self)
dropped. (Andrew Laski)

* New class ``CompoundFixture`` added, allowing fixtures to be combined.
(Jonathan Lange)

* Support for Python 3.2 dropped (as pip and setuptools have).
(Robert Collins)

1.4

~~~

* ``fixtures`` now has CI testing via Travis, no more manual work.
(Robert Collins)

* ``mock`` is used in preference to ``unittest.mock`` now, as the rolling
backport has significant bugfixes over older but still supported CPython
stdlib versions. (Robert Collins)

* ``fixtures.FakeLogger`` now detects incorrectly formatted log messages.
(John Villalovos, 1503049)

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.