This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).
Change-Id: Iba024665b04ba63cde470556068294541a48ac57
This new decorator implements the TestResult protocol extension supported by test resources. For example, tt makes it possible to easily have resource-related events streamed to subunit.
There is a circular import loop between testtools and fixtures,
which is fine, but we need to define gather_details before importing
fixtures.
Change-Id: I9a59968c4e2ac2c29d679d7f5c474696c898671e
This provides a way to make it easier to test with
unicode text strings. The value returned will be like
TestCase.getUniqueString but the value is six.text_type
and contains unicode.
Change-Id: I3f144e1294a801b23793f7a2520465e15f3a5222
Previously, when gathering details caused by a setUp failure,
a traceback occurred if the fixture used the newer _setUp().
This also had the side effect of not clearing up fixtures properly.
Change-Id: I9d138e8d559e176867c6e3f4b89f784cf4d29f05
Fixes: https://bugs.launchpad.net/testtools/+bug/1469759
* Move test code to testtools.tests.twistedsupport, to parallel matchers
* Add testtools.deferredruntest to preserve backwards compatibility
* Move NeedsTwistedTestCase out of test_spinner into shared module for
Twisted tests
Closes #202
* Move test code to testtools.tests.twistedsupport, to parallel matchers
* Add testtools.deferredruntest to preserve backwards compatibility
* Move NeedsTwistedTestCase out of test_spinner into shared module for
Twisted tests
Twisted's IReporter contract doesn't specify `stop` or `shouldStop`.
With this change, we can still meaningfully call `stop()` after adapting
with `ExtendedToOriginalDecorator`.
* Exposes `CaptureTwistedLogs`, a fixture responsible for adding Twisted
logs as a detail
* Adds `suppress_twisted_logging` and `store_twisted_logs` parameters to
`AsynchronousDeferredRunTest`
`AsynchronousDeferredRunTest` has too much responsibility: in addition
to spinning the reactor while waiting for Deferreds to return, it also
suppresses Twisted's normal logging system, captures all of the Twisted
logs as a detail, and looks through these logs for errors.
These are three separate logging responsibilities which have been
extracted into three separate fixtures which are used by
`AsynchronousDeferredRunTest`. This paves the way for giving users more
control over these behaviors.
This patch deprecates some code and adds a dependency on fixtures, but
otherwise does not change behavior.