Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unittest mock and patch
#1
Hello
I have been coding in python for about a year and I still have very much problem with unittest mock and patch framework. I do not know if this is the place to suggest some enhancements:
  • documentation is somewhat confusing,
  • passed the introductory level,there seems to be little knowledge available on the net about this subject,
  • the framework is very silent about errors encountered and this does not help but may be it cannot be more helpful.

For other people who have a hard time with it here, is 1 video I found very useful :
https://www.youtube.com/watch?v=ww1UsGZV8fQ
unfortunately it is short of deeper information about patch multiple, patch dict etc...
Also more complex subjects are not treated such as pitfalls in using new and new_callable, how to mok a class and its methods, ....
If anyone has any more link towards deep tutorial, I am interested.
Reply
#2
We are not official Python people here, we are just enthusiasts trying to provide a different format for helping with coding problems. You may want to address your concerns to the Python mailing list.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in using unittest akbarza 2 257 Feb-25-2024, 12:51 PM
Last Post: deanhystad
Question Unwanted execution of unittest ThomasFab 9 1,942 Nov-15-2022, 05:33 PM
Last Post: snippsat
  unittest.mock for an api key silver 3 1,335 Aug-29-2022, 03:52 PM
Last Post: ndc85430
  Mock obj - How to call the side_effect every time during the run? pythonisbae 3 2,554 Mar-06-2022, 09:37 AM
Last Post: pythonisbae
  Ran 0 tests in 0.000s - unittest Peaches 8 4,923 Dec-31-2021, 08:58 AM
Last Post: Peaches
Sad Problem with Unittest mhanusek 1 3,679 Nov-12-2020, 04:58 PM
Last Post: Gribouillis
  Unittest et patch mad31 2 2,071 Aug-09-2020, 06:16 AM
Last Post: mad31
  Unusual things to do with unittest/HTMLTestRunner AndyHolyer 0 2,102 Jul-29-2020, 02:43 PM
Last Post: AndyHolyer
  Test a class function via "unittest " Penguin827 1 1,576 Jul-10-2020, 08:31 AM
Last Post: Gribouillis
  StopIteration exception when mock PostgreSQL connection in several tests igor87z 1 2,878 Jun-10-2020, 06:16 PM
Last Post: ibreeden

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020