summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Provide a ``testtools[twisted]`` extraColin Watson2022-07-011-1/+2
| | | | | | | 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.
* Merge branch 'master' into rm-3.5Hugo van Kemenade2022-05-043-6/+2
|\
| * Fix inclusion of NEWS in Sphinx documentationColin Watson2022-04-251-0/+1
| | | | | | | | | | | | | | `make html-sphinx` previously warned: .../doc/index.rst:20: WARNING: toctree contains reference to nonexisting document 'news'
| * doc: Remove references to unittest2Stephen Finucane2022-02-072-6/+1
| | | | | | | | Signed-off-by: Stephen Finucane <stephen@that.guru>
* | Drop support for EOL Python 3.5Hugo van Kemenade2022-02-072-3/+3
|/
* Merge branch 'master' into deprecate-distutils-integrationJelmer Vernooij2022-01-241-8/+0
|\
| * Drop note about assertIn, assertIs, assertIsInstance and their negatives ↵Jelmer Vernooij2022-01-241-8/+0
| | | | | | | | that no longer applies with modern versions of Python. Fixes #322
* | Deprecate distutils integrationStephen Finucane2021-12-131-0/+8
|/ | | | | | | | 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
* Re-introduce 'try_imports'Stephen Finucane2021-02-251-18/+0
| | | | | | | | | | | | There are few if any people still (knowingly) using the 'extras' lib. OpenStack users have their own implementation (sigh) in 'oslo.utils' and everyone else is getting by with try-except statements. Reintroduce this utility to 'testtools.helpers', allowing us to eventually drop the dependency on extras. Note however that we can't actually do this yet since 'fixtures' has an implicit dependency on 'extras' through 'testtools', and we break that by removing it here. Signed-off-by: Stephen Finucane <stephen@that.guru>
* Remove use of 'try_imports'Stephen Finucane2021-02-251-12/+0
| | | | | | | | 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>
* Remove use of 'safe_hasattr'Stephen Finucane2021-02-251-8/+0
| | | | | | | | | | | | | 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>
* Testtools 2.4.0 is the last to support Python 2.7Hugo van Kemenade2020-04-041-1/+1
| | | Co-Authored-By: Matthew Treinish <mtreinish@kortar.org>
* Merge branch 'master' into rm-2Hugo van Kemenade2020-03-191-1/+1
|\
| * Supports 2.7 and 3.5+Hugo van Kemenade2020-01-211-1/+1
| |
| * If you wish to use testtools with Python 3.3 or 3.4, then please use ↵Hugo2020-01-181-1/+1
| | | | | | | | testtools 2.3.0
* | Upgrade Python syntax with pyupgrade --py3-plusHugo2020-01-181-5/+4
| |
* | Drop support for EOL Python 2.7Hugo2020-01-184-16/+13
| |
* | If you wish to use testtools with Python 3.3 or 3.4, then please use ↵Hugo2020-01-181-1/+1
|/ | | | testtools 2.3.0
* Drop support for EOL Python 3.4Hugo2019-11-251-1/+1
|
* Drop support for EOL Python 3.3Hugo2018-05-032-2/+4
|
* Remove old Python 2.6 codehugovk2018-01-091-2/+2
|
* Spelling fixes (#261)Ville Skyttä2017-05-291-2/+2
|
* Add testtools.assertions to the documented API modules (#257)Free Ekanayaka2017-02-251-0/+8
| | | This fixes #256.
* Correct docs for skip deprecationBrant Knudson2016-04-121-1/+0
| | | | | The docs said that the skip method didn't emit a warning, but it does since 9e43c3c.
* Add matchers for detecting emitted warnings.Jonathan Jacobs2016-03-161-0/+48
|
* Add unique_text_generatorBrant Knudson2016-02-291-0/+4
| | | | | | | | | 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
* Add Always & Never matchers.Jonathan Lange2016-02-071-0/+14
|
* Options for logging in AsynchronousDeferredRunTestJonathan Lange2016-02-033-1/+46
| | | | | | | * Exposes `CaptureTwistedLogs`, a fixture responsible for adding Twisted logs as a detail * Adds `suppress_twisted_logging` and `store_twisted_logs` parameters to `AsynchronousDeferredRunTest`
* Drop support for Python 2.6 and 3.2Jonathan Lange2016-01-251-6/+6
| | | | | Just the tests and documentation for now. Leaves any code accommodations in place.
* NO_RESULT -> has_no_resultJonathan Lange2016-01-132-3/+1
|
* Rename `successful` to `succeeded`Jonathan Lange2016-01-121-1/+1
|
* New module for twisted support codeJonathan Lange2016-01-102-17/+20
| | | | | | | | * Move tests to import that module * Update API docs to refer to that module * Make sure that new matchers are exported from that module and included in API reference documentation * Update NEWS
* Minor documentation tweaksJonathan Lange2016-01-101-0/+3
|
* Make no_result a constantJonathan Lange2016-01-101-1/+1
|
* Style & documentation tweaks from reviewJonathan Lange2016-01-101-1/+2
|
* Nicer linksJonathan Lange2016-01-091-10/+12
|
* Link to Twisted API docsJonathan Lange2016-01-092-16/+26
|
* Documentation with examplesJonathan Lange2016-01-091-11/+50
|
* Merge pull request #186 from jml/bump-release-docs-1516087Jonathan Lange2015-12-231-0/+3
|\ | | | | | | | | Document checking release milestone before release Fixes: https://pad.lv/1516087
| * Document checking release milestone before releaseJonathan Lange2015-12-211-0/+3
| |
* | Merge branch 'master' into python-3.5Jonathan Lange2015-12-194-45/+62
|\ \ | |/
| * API docs for deferredruntestJonathan Lange2015-12-091-0/+7
| |
| * Need Deferred referenceJonathan Lange2015-12-091-0/+1
| |
| * Documentation tweaksJonathan Lange2015-12-081-7/+7
| |
| * Move Twisted docs to separate fileJonathan Lange2015-12-083-46/+55
| |
* | Support Python 3.5, announce deprecation 3.2.Jonathan Lange2015-12-151-1/+1
|/
* Update hacking documentation.Thomi Richards2015-10-051-3/+14
| | | | | | | | Tweak language to make it clear that we're talking about building testtools for the purpose of hacking on it, rather than installing it for production or end use. Warn against interactions with easy_install.
* Merge pull request #146 from elopio/patch-1rbtcollins2015-07-011-1/+1
|\ | | | | Fix the call to the parent setup.
| * Fix the call to the parent setup.Leo Arias2015-06-291-1/+1
| | | | | | In the documentation example, the name of the class is wrong in the super call.
* | Programmatically declare test dependencies.Robert Collins2015-07-011-0/+3
|/ | | | | | This can be used e.g. 'pip install -e .[test]' Change-Id: I51c0411af37ab2c43d068d22f0e3473dd958c7ba