summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-23882: Doc: Clarify unittest discovery document (GH-21560)Inada Naoki2021-02-221-6/+12
| | | | | | | | Unittest discovery support namespace package as start directory. But it doesn't find namespace package in the start directory automatically. Otherwise, unittest discovery search into unexpected directories like `vendor/` or `node_modules/`.
* Fix typos in unittest documentation (GH-24194)Conchylicultor2021-01-201-3/+3
| | | | * addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups
* bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)Ram Rachum2020-11-221-2/+1
| | | Removing 'evaluate' makes it more consistent with other assertX entries.
* bpo-38320: Clarify that expectedFailure is satisfied by either failure or ↵Irit Katriel2020-10-191-5/+6
| | | | error of the test. (GH-22740)
* bpo-41898: add caveat on root logger seeing all messages in assertLogs doc ↵Irit Katriel2020-10-041-1/+2
| | | | (GH-22526)
* bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)Dmytro Litvinov2020-07-281-1/+1
|
* bpo-39385: Add an assertNoLogs context manager to unittest.TestCase (GH-18067)Kit Choi2020-07-011-0/+21
| | | Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
* Fix parameter names in assertIn() docs (GH-18829)Christoph Zwerschke2020-04-171-3/+3
| | | The names "member" and "container" for the arguments are also used in the module and shown with the help() function, and are immediately understandable in this context, contrary to "first" and "second".
* Add missing comma and period in unittest docs (GH-17211)Jules Lasne (jlasne)2019-11-191-1/+1
| | | Automerge-Triggered-By: @csabella
* Remove doc reference to unmaitained Nose package (GH-16849)Jon Dufresne2019-10-191-2/+2
| | | The Nose package is no longer maintained.
* bpo-32972: Document IsolatedAsyncioTestCase of unittest module (GH-15878)Xtreak2019-09-111-0/+76
| | | | | | | | | | | * Document `unittest.IsolatedAsyncioTestCase` API * Add a simple example with respect to order of evaluation of setup and teardown calls. https://bugs.python.org/issue32972 Automerge-Triggered-By: @asvetlov
* [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)Serhiy Storchaka2019-06-051-1/+1
| | | Turn deprecation warnings added in 3.8 into TypeError.
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-2/+2
|
* bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)Makdon2019-05-311-4/+12
| | | | | | Also includes other minor test skipping doc improvements. https://bugs.python.org/issue37094
* Fixed capital letters missing and missing . (GH-12584)Jules Lasne (jlasne)2019-03-281-6/+6
| | | No `bpo` for minor doc fix
* Doc: Missing backquotes. (GH-11982)Julien Palard2019-02-221-1/+1
|
* Doc: Fix typo. (GH-11315)Julien Palard2019-02-191-1/+1
| | | From: https://mail.python.org/pipermail/docs/2018-December/038583.html
* Clarify expectedFailure in the unittest docs. (#10953)Gregory P. Smith2018-12-061-2/+2
|
* Correct a typo in the Unittest documentation (GH-10397)Géry Ogam2018-11-091-1/+1
| | | | Co-Authored-By: maggyero <gery.ogam@gmail.com>
* bpo-24412: Adds cleanUps for setUpClass and setUpModule. (GH-9190)Lisa Roach2018-11-091-0/+65
|
* unittest documentation: Spell pytest without the dot (GH-9820)Andreas Pelme2018-10-271-1/+1
| | | Referring to ``pytest`` as ``py.test`` is deprecated.
* bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)Stéphane Wirtel2018-10-261-1/+1
|
* Make it clear that the msg argument to ↵Benjamin Peterson2018-10-031-3/+3
| | | | | assertWarns/assertWarnsRegex/assertRaisesRegex is keyword-only. (GH-9680) A follow up to be4e5b89204283a62e369439025f00362d0424f6.
* Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)Benjamin Peterson2018-10-021-1/+1
|
* Make it more clear that setUpClass runs before each class, not "class run" ↵Ville Skyttä2018-08-231-1/+1
| | | | (GH-8844)
* Fix reST markup in unittest documentation (GH-8665)Berker Peksag2018-08-031-1/+1
|
* bpo-19950: Clarify unittest TestCase instance use. (GH-6875)Gregory P. Smith2018-05-171-9/+15
|
* bpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)Mariatta2018-02-231-1/+1
| | | | `whilst` and `while` are both english words, `whilst` is not as commonly used. This can be confusing to readers whose primary language is not english.
* bpo-25910: Fixes redirection from http to https (#4674)Sanyam Khurana2017-12-061-1/+1
|
* bpo-32071: Add unittest -k option (#4496)Jonas Haag2017-11-251-0/+34
| | | | * bpo-32071: Add unittest -k option
* Improve test suite customization example (GH-3967)Berker Peksag2017-10-131-2/+6
| | | | Reported by John Gamboa on docs@p.o at https://mail.python.org/pipermail/docs/2017-June/031942.html
* bpo-30335: Add deprecation alias entry for assertNotRegexpMatches (GH-1536)Jim Fasarakis-Hilliard2017-06-091-5/+10
| | | Document that assertNotRegexpMatches is a deprecated alias for assertNotRegex.
* Issue 29274: Merge doc fixes from 3.5Martin Panter2017-01-181-4/+4
|\
| * Issue #29274: tests cases → test casesMartin Panter2017-01-181-4/+4
| |
* | Merge doc fixes from 3.5Martin Panter2017-01-141-5/+5
|\ \ | |/
| * Fix grammar, typos and markup in documentation and code commentsMartin Panter2017-01-141-5/+5
| | | | | | | | | | | | * Indent versionchanged at method level, not class level * Mark up ``--help`` to avoid generating an en dash * Use forward slash in Unix command line with a dollar sign ($) prompt
* | Issue #26638: Merge option warning fixes from 3.5 into 3.6Martin Panter2016-10-301-2/+4
|\ \ | |/
| * Issue #26638: Work around more CLI options that can’t be linkedMartin Panter2016-10-301-2/+4
| | | | | | | | | | | | * Cannot seem to link directly to main options from the “unittest” module, because that module has its own set of options * Mask out linking for options that no longer exist in Python 3
* | Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-2/+2
|\ \ | |/
| * Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-2/+2
| |
* | Issue #26869: Document unittest.TestCase.longMessage. (Mariatta) (3.5->3.6)Guido van Rossum2016-10-131-13/+11
|\ \ | |/
| * Issue #26869: Document unittest.TestCase.longMessage. (Mariatta)Guido van Rossum2016-10-131-13/+11
| |
* | Merge with 3.5Zachary Ware2016-08-301-1/+1
|\ \ | |/
| * Fix typoZachary Ware2016-08-301-1/+1
| |
* | Issue #18548: Merge from 3.5Berker Peksag2016-08-061-2/+2
|\ \ | |/
| * Issue #18548: Fix unittest.TestSuite() exampleBerker Peksag2016-08-061-2/+2
| | | | | | | | Initial patch by py.user.
* | Merge Issue #22558.Terry Jan Reedy2016-06-111-0/+5
|\ \ | |/
| * Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+5
| | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | Expand abbreviations FIFO and LIFO.Serhiy Storchaka2016-05-161-3/+3
|/
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-13/+13
| | | | Original patch by James Edwards.