| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Fixes #321.
|
| | |
|
| | |
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
This documents dependencies needed for `testtools.twistedsupport`. At
the moment this is just `Twisted`, but it generally seems a good idea to
put this sort of thing in an official extra rather than having it be
documented ad-hoc.
|
| |/
|
|
| |
`fixtures` 2.0 was released in 2016.
|
| | |
|
| | |
|
| |\ |
|
| | | |
|
| |/
|
|
|
|
|
|
| |
We don't want to remove this immediately, but we should try to do so
sooner rather than later.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #316
|
| | |
|
| |
|
|
| |
This commit prepares the NEWS file for the 2.5.0 release.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
This was being used in places to handle differences between Python 2 and
Python 3. Since we only care about the latter now, the utility can be
removed.
Signed-off-by: Stephen Finucane <stephen@that.guru>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This was used to workaround some issues with 'hasattr' on Python 2.x
versions, discussed in the source for extras (where this utility was
moved to make it more useful to others) [1] and elsewhere on the
internet [2]. These issues are no longer present on the versions of
Python we now support (Python 3.6+) so this is no longer necessary.
[1] https://github.com/testing-cabal/extras/blob/1.0.0/extras/__init__.py#L101-L108
[2] https://hynek.me/articles/hasattr/
Signed-off-by: Stephen Finucane <stephen@that.guru>
|
| |
|
|
| |
Signed-off-by: Stephen Finucane <stephen@that.guru>
|
| |\ |
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In unittest/unittest2 the skip/skipIf/skipUnless decorators can be used to
decorate either individual test methods or entire TestCase classes.
However, the testtools equivalents could previously only be used to
decorate test methods. If used on a TestCase the class would be replaced
with a function, resulting in the tests either not be discovered at all or
(if a custom test loader was used) potentially an error.
This change allows the skip decorators to be used on the TestCase subclass,
for equivalent functionality with unittest.
Fixes #205
Signed-off-by: Zane Bitter <zbitter@redhat.com>
|
| | |
|
| | |
|
| |
|
|
|
| |
integration (#243)
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.
|
| |
|
|
| |
Change-Id: I987d4e3a0aee951941efcae0abba147197f79732
|
| |
|
|
| |
deferredGenerator is deprecated.
|
| |
|
|
| |
Change-Id: I2598eac83d42e3d491d124fd0f6277e35b261c45
|
| |
|
|
| |
Change-Id: Ib3053cb902f607eef8f1c245bbd29e3da17fa6b0
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
When we get a suspected KeyboardInterrupt (no result from Deferred),
explicitly stop the result and report the error as if it were a user
error.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
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`
|
| |
|
|
|
|
| |
Our tests make assertions that only hold when debugging is disabled.
This patch updates the code to ensure that debugging is in the state
we want.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`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.
|
| | |
|
| |
|
|
|
| |
Just the tests and documentation for now. Leaves any code accommodations
in place.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | |\
| | |
| | | |
Improve NEWS
|
| | | |
| | |
| | |
| | |
| | | |
Link to fixed bugs, move user-facing bugfix to improvements, delete
duplicate entry.
|
| | |\ \
| | |/
| |/| |
Add requirements for readthedocs
|