Fixtures

Latest version: v4.1.0

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

Scan your dependencies

Page 5 of 6

0.3.4

~~~~~

CHANGES:

* Fixture now supports ``addDetail`` and provides a``getDetails`` call
compatible with the ``testtools.TestCase`` calls. (Robert Collins, 640119)

* New helper ``MethodFixture`` for wrapping an object similarly to
``FunctionFixture`` (Robert Collins)

0.3.3

~~~~~

Fixtures now have a ``useFixture`` method as well, making nesting of fixtures
trivial.

CHANGES:

* New method ``Fixture.useFixture`` allowing fixtures to compose other
fixtures. (Robert Collins)

0.3.2

~~~~~

Point release adding new EnvironmentVariableFixture for controlling environment
variables.

CHANGES:

* New EnvironmentVariableFixture which can set or unset environment variables.
(Robert Collins)

0.3.1

~~~~~

Point release adding experimental PopenFixture.

CHANGES:

* Experimental PopenFixture providing a test double for testing code that runs
external processes. (Robert Collins)

0.3

~~~

This release slightly breaks compatibility in order to get the cleanUp API
really solid : it now will report correctly with testtools 0.9.7, and
generally does the right thing by default. Apologies to anyone affected by
this churn, but I felt the cleanness of the API was worth it.

CHANGES:

* When multiple exceptions are being raised from cleanUp, MultipleExceptions
is used to report them all. This is preferentially imported from testtools
and failing that defined locally. See testtools 0.9.7 for its use.
(Robert Collins)

0.2

~~~

CHANGES:

* Exceptions raised during cleanup are no longer silently swallowed. They
are returned in a list by default, or the first one is raised if raise_first
is supplied. The TestCase glue code passes raise_first to cleanUp.
(Robert Collins, 629032)

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.