[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Mock has a section on getting started that has several recipes but it's not under howto section. Perhaps this page could be updated if you want to make a PR : https://docs.python.org/3/library/unittest.mock-examples.html There is also a section on

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0dd4cb944b497dc6bd0b3763e461d72e9a7b6490 by Miss Islington (bot) in branch '3.9': bpo-43400: Remove "easy to use" from mock docs (GH-24752) (GH-24758) https://github.com/python/cpython/commit/0dd4cb944b497dc6bd0b3763e461d72e9a7b6490 ---

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23530 pull_request: https://github.com/python/cpython/pull/24758 ___ Python tracker _

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2122e486307d5577cb5fb5e7cfd24095695bc7e9 by Eddie Peters in branch 'master': bpo-43400: Remove "easy to use" from mock docs (GH-24752) https://github.com/python/cpython/commit/2122e486307d5577cb5fb5e7cfd24095695bc7e9 -- ___

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Doug Harris
Doug Harris added the comment: +1 on this documentation change. @xtreak yes, patching the correct object has bit me a couple times. The pattern that I work with the most is when mocking calls to external services and APIs. I want to test my code that, say, sends email or sends user informat

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for the OP's suggestion. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list m

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I don't have any opinion on removing the part of the sentence. It will be helpful if you can list the scenarios where you feel document is lacking so that it can be improved. One area I have found to be little tricky is patching the correct object

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Eddie Peters
Change by Eddie Peters : -- keywords: +patch pull_requests: +23522 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24752 ___ Python tracker ___ ___

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Eddie Peters
New submission from Eddie Peters : The unittest.mock library is very useful and very powerful, but it is not "very easy to use." Docs are useful and important, or we wouldn't be here in a documentation issue. I have watched several of the most experienced Python programmers I know struggle wi