Egil Martinsson
3d881453d3
gh-109350: Fix outdated captured output in unittest.mock documentation ( #109353 )
2023-09-15 19:25:16 +01:00
Karthikeyan Singaravelan
e183a71eef
bpo-38157: Add example about per file output for mock_open. ( #16090 )
...
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-07 09:19:13 +00:00
Nikita Sobolev
5141b1ebe0
gh-101100: Fix sphinx warnings in `unittest.mock-examples.rst` ( #108810 )
2023-09-02 13:05:44 +01:00
Rafael Fontenelle
68ed2a2a3f
GH-103484: Fix redirected permanently URLs ( #104001 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
2023-05-02 09:34:44 +03:00
Hugo van Kemenade
fa2d43e518
Docs: Fix backtick errors found by sphinx-lint ( #97998 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2022-10-06 18:01:30 -07:00
Alex Waygood
6823ba4a9e
gh-92417: `unittest.mock` docs: remove references to Python <2.6 (GH-92539)
2022-05-10 08:47:36 +03:00
Andre Delfino
52cd6d5e1b
Use the zero argument form of super() in examples for Python3 docs. (GH-22314)
2021-04-26 15:13:54 -07:00
Lisa Roach
8b03f943c3
bpo-38093: Correctly returns AsyncMock for async subclasses. (GH-15947)
2019-09-19 21:04:18 -07:00
Xtreak
c8dfa7333d
bpo-37052: Add examples for mocking async iterators and context managers (GH-14660)
...
Add examples for mocking asynchronous iterators and asynchronous context managers.
https://bugs.python.org/issue37052
2019-09-10 03:37:17 -07:00
Serhiy Storchaka
2085bd0877
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
2019-06-01 11:00:15 +03:00
Chris Withers
8ca0fa9d2f
bpo-35226: Fix equality for nested unittest.mock.call objects. ( #10555 )
...
Also refactor the call recording imolementation and add some notes
about its limitations.
2018-12-03 21:31:37 +00:00
Stéphane Wirtel
859c068e52
bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)
2018-10-12 09:51:05 +02:00
Andrés Delfino
271818fe27
Fix "Python" casing in a few places (GH-9001)
2018-09-14 10:13:09 -07:00
Sanyam Khurana
338cd83c5d
bpo-25910: Link redirections in docs ( #1933 )
...
Fixes some redirection links in docs.
2018-01-20 01:25:37 +01:00
Serhiy Storchaka
6dff0205b7
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:07 +03:00
Berker Peksag
b31daff1f7
Issue #26688 : Fix module name in mock docs
...
Patch by Ashley Anderson.
2016-04-02 04:32:06 +03:00
Georg Brandl
5d94134040
Closes #25910 : fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
2016-02-26 19:37:12 +01:00
Berker Peksag
a370a4271e
Issue #26199 : Fix broken link in unittest.mock-examples.rst
...
Patch by Raphael Das Gupta.
2016-01-28 08:40:03 +02:00
Serhiy Storchaka
c02d188a84
Issue #22823 : Use set literals instead of creating a set from a list.
...
Fixed an output of sets in examples.
2014-12-11 10:28:14 +02:00
Georg Brandl
7ad3df69a6
unittest.mock docs: fix use of default role
2014-10-31 07:59:37 +01:00
Georg Brandl
525d355984
Fixing broken links in doc, part 3: the rest
2014-10-29 10:26:56 +01:00
Georg Brandl
728e4debd8
Fix external links to docs.python.org to use internal links instead.
2014-10-29 09:00:30 +01:00
Georg Brandl
e73778c1ac
Use https:// URLs when referring to python.org hosts.
2014-10-29 08:36:35 +01:00
Éric Araujo
0b1be1a3b1
Fix typo in example ( #20963 )
2014-03-17 16:48:13 -04:00
Larry Hastings
3732ed2414
Merge in all documentation changes since branching 3.4.0rc1.
2014-03-15 21:13:56 -07:00
Terry Jan Reedy
a67a79da24
Merge with 3.3
2014-01-21 00:02:17 -05:00
Terry Jan Reedy
30ffe7eb68
Issue #20222 : file is no longer a builtin in 3.x.
2014-01-21 00:01:51 -05:00
Ezio Melotti
9d67238439
#17539 : merge with 3.3.
2013-03-30 05:56:21 +02:00
Ezio Melotti
b40a2203ad
#17539 : fix MagicMock example. Patch by Berker Peksag.
2013-03-30 05:55:52 +02:00
Ezio Melotti
a41fb4be5b
#17351 : merge with 3.3.
2013-03-11 09:43:25 +02:00
Ezio Melotti
c9cfcf1e6c
#17351 : merge with 3.2.
2013-03-11 09:42:40 +02:00
Georg Brandl
cd50108341
merge with 3.3
2013-02-03 14:00:38 +01:00
Georg Brandl
7fc972a2aa
#17109 : fix headings in mock example doc.
2013-02-03 14:00:04 +01:00
Antoine Pitrou
5c64df70b5
Issue #17015 : When it has a spec, a Mock object now inspects its signature when matching calls, so that arguments can be matched positionally or by name.
2013-02-03 00:23:58 +01:00
Ezio Melotti
e212370fea
Use correct methods in unittest.mock examples.
2013-01-10 03:43:33 +02:00
Michael Foord
2cd48738ba
Closes issue 14636. mock objects raise exceptions from an iterable side_effect
2012-04-21 15:52:11 +01:00
Michael Foord
0682a0c0a9
Minor docstring / docs corrections for unittest.mock
2012-04-13 20:51:20 +01:00
Georg Brandl
24891672ce
Fix markup errors found by "make suspicious".
2012-04-01 13:48:26 +02:00
Michael Foord
a9e6fb201d
Unsplit unittest.mock documentation
2012-03-28 14:36:02 +01:00
Michael Foord
944e02d055
Adding unittest.mock documentation
2012-03-25 23:12:55 +01:00