Testtools

Latest version: v2.7.1

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

Scan your dependencies

Page 5 of 11

0.9.38

~~~~~~

Bug fixes for test importing.

Improvements
------------

* Discovery import error detection wasn't implemented for python 2.6 (the
'discover' module). (Robert Collins)

* Discovery now executes load_tests (if present) in __init__ in all packages.
(Robert Collins, http://bugs.python.org/issue16662)

0.9.37

~~~~~~

Minor improvements to correctness.

Changes
-------

* ``stdout`` is now correctly honoured on ``run.TestProgram`` - before the
runner objects would be created with no stdout parameter. If construction
fails, the previous parameter list is attempted, permitting compatibility
with Runner classes that don't accept stdout as a parameter.
(Robert Collins)

* The ``ExtendedToStreamDecorator`` now handles content objects with one less
packet - the last packet of the source content is sent with EOF set rather
than an empty packet with EOF set being sent after the last packet of the
source content. (Robert Collins)

0.9.36

~~~~~~

Welcome to our long overdue 0.9.36 release, which improves compatibility with
Python3.4, adds assert_that, a function for using matchers without TestCase
objects, and finally will error if you try to use setUp or tearDown twice -
since that invariably leads to bad things of one sort or another happening.

Changes
-------

* Error if ``setUp`` or ``tearDown`` are called twice.
(Robert Collins, 882884)

* Make testtools compatible with the ``unittest.expectedFailure`` decorator in
Python 3.4. (Thomi Richards)


Improvements
------------

* Introduce the assert_that function, which allows matchers to be used
independent of testtools.TestCase. (Daniel Watkins, 1243834)

0.9.35

~~~~~~

Changes
-------

* Removed a number of code paths where Python 2.4 and Python 2.5 were
explicitly handled. (Daniel Watkins)

Improvements
------------

* Added the ``testtools.TestCase.expectThat`` method, which implements
delayed assertions. (Thomi Richards)

* Docs are now built as part of the Travis-CI build, reducing the chance of
Read The Docs being broken accidentally. (Daniel Watkins, 1158773)

0.9.34

~~~~~~

Improvements
------------

* Added ability for ``testtools.TestCase`` instances to force a test to
fail, even if no assertions failed. (Thomi Richards)

* Added ``testtools.content.StacktraceContent``, a content object that
automatically creates a ``StackLinesContent`` object containing the current
stack trace. (Thomi Richards)

* ``AnyMatch`` is now exported properly in ``testtools.matchers``.
(Robert Collins, Rob Kennedy, github 44)

* In Python 3.3, if there are duplicate test ids, tests.sort() will
fail and raise TypeError. Detect the duplicate test ids firstly in
sorted_tests() to ensure that all test ids are unique.
(Kui Shi, 1243922)

* ``json_content`` is now in the ``__all__`` attribute for
``testtools.content``. (Robert Collins)

* Network tests now bind to 127.0.0.1 to avoid (even temporary) network
visible ports. (Benedikt Morbach, github 46)

* Test listing now explicitly indicates by printing 'Failed to import' and
exiting (2) when an import has failed rather than only signalling through the
test name. (Robert Collins, 1245672)

* ``test_compat.TestDetectEncoding.test_bom`` now works on Python 3.3 - the
corner case with euc_jp is no longer permitted in Python 3.3 so we can
skip it. (Martin [gz], 1251962)

0.9.33

~~~~~~

Improvements
------------

* Added ``addDetailuniqueName`` method to ``testtools.TestCase`` class.
(Thomi Richards)

* Removed some unused code from ``testtools.content.TracebackContent``.
(Thomi Richards)

* Added ``testtools.StackLinesContent``: a content object for displaying
pre-processed stack lines. (Thomi Richards)

* ``StreamSummary`` was calculating testsRun incorrectly: ``exists`` status
tests were counted as run tests, but they are not.
(Robert Collins, 1203728)

Page 5 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.