Commit Graph

1767 Commits

Author SHA1 Message Date
Tony Breeds a5af506d46 Retire Packaging Deb project repos
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
2017-09-12 16:12:39 -06:00
Ville Skyttä 33dc6c8c67 Spelling fixes (#261) 2017-05-29 11:38:04 +02:00
Ville Skyttä 63d6945020 Python 3.6 invalid escape sequence deprecation fixes (#262)
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2017-05-29 11:36:47 +02:00
Free Ekanayaka b4d158ab8a Release 2.3.0 2017-05-11 15:44:22 +02:00
Free Ekanayaka 01d4a9b59e Add ResourcedToStreamDecorator test result decorator for testresources 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.
2017-04-11 15:13:10 +02:00
Gavin Panella bb7c7ecfc6 Make KeysEqual usable with no arguments, i.e. match a dict with no keys. (#241)
Make KeysEqual usable with no arguments, i.e. match a dict with no keys.
2017-03-17 19:29:29 +01:00
Free Ekanayaka a3c7102f42 Add testtools.assertions to the documented API modules (#257)
This fixes #256.
2017-02-25 16:44:52 +01:00
Free Ekanayaka 2b446cde2a Add Python 3.6 to the list of Travis targets (#255)
Travis will now run Python 3.6 tests too.
2017-02-22 17:59:35 +01:00
Thomas Hervé a7de00b48c Don't add file details without content (#252)
In the test record API, skip adding file details to the record if there
are not bytes. This reduces that amount of data kept when there is none.
2017-02-08 12:16:10 +01:00
Free Ekanayaka 64230b7d7e Don't run Sphinx on Travis Python 3.3 target (#250)
Since Sphinx only supports 2.7 or >=3.4, we don't want to run it in
the 3.3 Travis target.
2017-02-07 10:34:07 +01:00
Free Ekanayaka ee231d1be0 Merge pull request #242 from testing-cabal/remove-test-dependency-on-twisted-13
Make twistedsupport and related tests fully work on Python 3
2016-12-01 15:45:36 +01:00
Free Ekanayaka 61baa3e0f6 Make twistedsupport and tests work on Python 3 2016-11-26 16:53:28 +00:00
Robert Collins bfc88a45a3 Release 2.2.0
Change-Id: I987d4e3a0aee951941efcae0abba147197f79732
2016-05-19 11:41:42 +12:00
Robert Collins 469154ca23 Depend on the extras 1.0.0 release
We're involved in a circular dependency race with fixtures, which
needs extras 1.0.0 to resolve.

Change-Id: I8f44a24ac28b120968caa8f049f7befaae490d05
2016-05-19 11:39:25 +12:00
Robert Collins ee3b712d34 Unbreak fixtures test suite / use of gather_details
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
2016-05-19 11:39:25 +12:00
Jonathan Lange 52b5d19191 UTF-8 encode Twisted logs (allenap) 2016-04-30 09:50:10 +01:00
Jonathan Lange 73a88b7c56 Use inlineCallbacks instead of deferredGenerator
deferredGenerator is deprecated.
2016-04-27 10:31:51 +01:00
Robert Collins 5e51d88cb3 Fix _lp_release: NEXT is case sensitive.
Change-Id: I2598eac83d42e3d491d124fd0f6277e35b261c45
2016-04-18 19:21:06 +12:00
Robert Collins 4bbc3fb882 Release 2.1.0
Change-Id: Ib3053cb902f607eef8f1c245bbd29e3da17fa6b0
2016-04-18 19:13:37 +12:00
Brant Knudson 109667e308 Correct docs for skip deprecation
The docs said that the skip method didn't emit a warning, but it
does since 9e43c3c.
2016-04-12 19:19:33 -05:00
Jonathan Jacobs 8a69c2c536 Add matchers for detecting emitted warnings. 2016-03-16 08:26:26 +13:00
Thomas Herve 45a0a15924 Revert usage of pyrsistent
Remove the dependency on pyrsistent and make the _TestRecord class a
simple obkect, as it has a pretty big performance hit.

Closes #219
2016-03-04 09:56:59 +01:00
Brant Knudson 4d4bc6f384 Add unique_text_generator
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
2016-02-29 12:28:49 +13:00
Julian Edwards 11e50d3fc2 Become compatible with newer Fixtures _setUp() API.
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
2016-02-15 14:24:02 +13:00
Jonathan Lange cd286b23f2 Better handling of KeyboardInterrupt
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.
2016-02-14 13:01:31 +00:00
Jonathan Lange 725bfa9595 Fix example in docstring for `failed` 2016-02-14 12:59:55 +00:00
Jonathan Lange c8d131d371 Move all Twisted code to twistedsupport package
* 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
2016-02-07 16:43:44 +00:00
Jonathan Lange 092d4343f7 Revert "Move all Twisted code to twistedsupport package"
This reverts commit e571d9c25f.

Travis CI was failing before merge.
2016-02-07 15:56:48 +00:00
Jonathan Lange e571d9c25f Move all Twisted code to twistedsupport package
* 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
2016-02-07 15:51:32 +00:00
Jonathan Lange f5a370e75c Add Always & Never matchers. 2016-02-07 15:48:27 +00:00
Jonathan Lange ce009d3e86 Support TestResults without stop/shouldStop
Twisted's IReporter contract doesn't specify `stop` or `shouldStop`.
With this change, we can still meaningfully call `stop()` after adapting
with `ExtendedToOriginalDecorator`.
2016-02-04 14:12:50 +00:00
Jonathan Lange b3394b2a5c Stop using deprecated `skip()` internally 2016-02-04 13:43:00 +00:00
Jonathan Lange 1481272843 Release 2.0.0 2016-02-03 12:18:42 +00:00
Jonathan Lange 302751ef67 Options for logging in AsynchronousDeferredRunTest
* Exposes `CaptureTwistedLogs`, a fixture responsible for adding Twisted
  logs as a detail
* Adds `suppress_twisted_logging` and `store_twisted_logs` parameters to
  `AsynchronousDeferredRunTest`
2016-02-03 12:14:47 +00:00
Jonathan Lange 91c195c514 Twisted tests now pass under --debug-stacktraces
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.
2016-01-30 09:27:30 +00:00
Jonathan Lange af8e294ed1 Decouple log handling from Deferred wrangling
`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.
2016-01-29 09:56:50 +00:00
Jonathan Lange 7cbe25a5b9 Merge pull request #203 from testing-cabal/typo-flexability
Fix typo: flexability
2016-01-27 18:49:00 +00:00
Leo Arias 6fdbbfabba Fix typo: flexability 2016-01-27 11:08:11 -06:00
Jonathan Lange f0437c5511 Merge pull request #198 from jml/drop-old-pythons
Drop support for Python 2.6 and 3.2
2016-01-26 12:44:25 +00:00
Jonathan Lange 6cd8b48c07 Review tweaks 2016-01-26 12:31:18 +00:00
Jonathan Lange db7d6218ab Drop support for Python 2.6 and 3.2
Just the tests and documentation for now. Leaves any code accommodations
in place.
2016-01-25 16:43:44 +00:00
Jonathan Lange f70204c03c Release 1.9.0 2016-01-25 16:18:57 +00:00
Jonathan Lange 27485a6e89 Merge pull request #196 from jml/robust-spinner-timeout
Handle edge case in reactor running
2016-01-25 16:14:46 +00:00
Jonathan Lange 4c3d293a5a Merge branch 'master' into robust-spinner-timeout
Fixes Travis failures
2016-01-25 16:05:11 +00:00
Jonathan Lange 51c4557267 Merge pull request #197 from jml/fix-travis-3.2
Fix Travis builds for pypy3 and Python 3.2
2016-01-25 16:00:10 +00:00
Jonathan Lange 75eed307af Missed one. 2016-01-25 15:43:54 +00:00
Jonathan Lange 9cf2c3efdf 19.4.1 refers to importlib machinery. Avoid that. 2016-01-25 15:36:10 +00:00
Jonathan Lange 20d41472fc See if setuptools 19.5 is bad 2016-01-25 15:24:43 +00:00
Jonathan Lange 0e276e6a23 PIP_VERSION is used by pip itself 2016-01-25 15:15:15 +00:00
Jonathan Lange e754571e18 Correct spelling of 'less than 8', maybe 2016-01-25 15:01:32 +00:00