summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.mock.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-28911: Clarify the behaviour of assert_called_once_with. (#254)Arne de Laat2017-02-231-5/+6
| | | (cherry picked from commit 9d56b34af2efc4e266bf3ae62da5cd2e422a42be)
* Issue #20804: Document the limitation of the unittest.mock.sentinel attributes.Serhiy Storchaka2017-01-111-0/+3
|
* Issue #19795: Mark up None as literal text.Serhiy Storchaka2016-10-191-1/+1
|
* Issue #27531: Update signature of Mock.assert_not_called methodBerker Peksag2016-07-171-1/+1
| | | | | | Since 01ae1ac2daf4, it doesn't accept any arguments. Patch by Michael Killough.
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-2/+5
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Fix typos in mock and exceptions docsBerker Peksag2016-04-111-1/+1
| | | | | | | | | | | | | The default value of __len__ is 0, not 1: >>> from unittest.mock import MagicMock >>> mock = MagicMock() >>> len(mock) 0 Reported by Alex on docs@p.o. Remove the remaining VMSError reference. VMS support is gone.
* Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
|\
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Use print function in mock docs.Berker Peksag2015-09-101-6/+6
|\ \ | |/
| * Use print function in mock docs.Berker Peksag2015-09-101-6/+6
| |
* | Add versionchanged information for mock_open.Robert Collins2015-07-231-0/+8
|\ \ | |/
| * Add versionchanged information for mock_open.Robert Collins2015-07-231-0/+8
| |
* | Issue #21750: Further fixup to be styled like other mock APIs.Robert Collins2015-07-231-3/+5
|\ \ | |/
| * Issue #21750: Further fixup to be styled like other mock APIs.Robert Collins2015-07-231-3/+5
| |
| * Fix usage of the default role.Zachary Ware2015-07-071-35/+35
| | | | | | | | | | The changes to Doc/library/unittest.mock.rst are almost entirely a selective backport of the 3.5 page.
| * Fix suspicious markupZachary Ware2015-07-071-1/+1
| |
* | Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-6/+6
|\ \ | |/ | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
| * Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-6/+6
| | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* | merge 3.4 (#23221)Benjamin Peterson2015-01-131-1/+1
|\ \ | |/
| * fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-131-1/+1
| | | | | | | | Patch by Karan Goel.
* | Issue #20487: Clarify meaning of "side effect" in the magic mock documentation.Berker Peksag2015-01-071-3/+4
|\ \ | |/ | | | | Patch by A.M. Kuchling.
| * Issue #20487: Clarify meaning of "side effect" in the magic mock documentation.Berker Peksag2015-01-071-3/+4
| | | | | | | | Patch by A.M. Kuchling.
* | merge with 3.4Georg Brandl2014-10-311-7/+8
|\ \ | |/
| * #22613: minor other fixes in library docs (thanks Jacques Ducasse)Georg Brandl2014-10-311-7/+8
| |
| * unittest.mock docs: fix use of default roleGeorg Brandl2014-10-311-235/+235
| |
* | unittest.mock docs: fix use of default roleGeorg Brandl2014-10-311-277/+278
| |
* | Merge with 3.4Georg Brandl2014-10-291-1/+1
|\ \ | |/
| * Use https:// URLs when referring to python.org hosts.Georg Brandl2014-10-291-1/+1
| |
| * Merge in all documentation changes since branching 3.4.0rc1.Larry Hastings2014-03-161-2/+2
| |
* | Closes Issue 21262: New method assert_not_called for Mock.Kushal Das2014-04-161-0/+14
| | | | | | | | It raises AssertionError if the mock has been called.
* | Closes Issue 21238: New keyword argument `unsafe` to Mock.Kushal Das2014-04-161-1/+7
| | | | | | | | | | It raises `AttributeError` incase of an attribute startswith assert or assret.
* | Closes issue 17660. You no longer need to explicitly pass create=True when ↵Michael Foord2014-04-141-2/+23
| | | | | | | | patching builtin names.
* | Close #20759: Fix some typos in the mock docs. (Merge with 3.3)Zachary Ware2014-02-261-2/+2
|\ \ | |/ |/|
| * Issue #20759: Fix some typos in the mock docs.Zachary Ware2014-02-261-2/+2
| |
* | Removed spaces before colons and semicolons.Serhiy Storchaka2013-12-241-11/+11
|\ \ | |/
| * Removed spaces before colons and semicolons.Serhiy Storchaka2013-12-241-11/+11
| |
* | Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-3/+3
|\ \ | |/
| * Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-3/+3
| |
* | Issue #18758: Fixed and improved cross-references.Serhiy Storchaka2013-10-131-3/+4
|\ \ | |/
| * Issue #18758: Fixed and improved cross-references.Serhiy Storchaka2013-10-131-4/+4
| |
* | Issue #18743: Fix references to non-existant "StringIO" module.Serhiy Storchaka2013-08-161-2/+2
|\ \ | |/
| * Issue #18743: Fix references to non-existant "StringIO" module.Serhiy Storchaka2013-08-161-2/+2
| |
* | mergeBrett Cannon2013-05-251-1/+1
|\ \ | |/
| * Add a missing parenthesis.Brett Cannon2013-05-251-1/+1
| |
* | Closes issue 17467. Add readline and readlines support to ↵Michael Foord2013-03-201-2/+6
| | | | | | | | unittest.mock.mock_open
* | MergeMichael Foord2013-03-181-0/+19
|\ \ | |/
| * Documentation corrections for unittest.mockMichael Foord2013-03-181-0/+19
| |
* | Merge with 3.3, issue #17047: remove doubled words added in 3.3,Terry Jan Reedy2013-03-111-1/+1
|\ \ | |/ | | | | as reported by Serhiy Storchaka and Matthew Barnett.
| * Issue #17047: remove doubled words added in 3.3Terry Jan Reedy2013-03-111-1/+1
| | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
* | #17351: merge with 3.3.Ezio Melotti2013-03-111-8/+8
|\ \ | |/