Python mock Module
This page shows the popular functions and classes defined in the
mock module.
The items are ordered by their popularity in 40,000 open source Python projects.
If you can not find a good example below, you can try
the search function
to search modules.
-
1. patch()Used in 1301 projects
-
2. Mock()Used in 1033 projects
-
3. MagicMock()Used in 704 projects
-
4. call()Used in 361 projects
-
5. ANYUsed in 206 projects
-
6. mock_open()Used in 142 projects
-
Used in 118 projects
-
Used in 68 projects
-
9. DEFAULTUsed in 44 projects
-
10. mock()Used in 12 projects
-
11. sentinel()Used in 11 projects
-
12. return_value()Used in 11 projects
-
Used in 10 projects
-
Used in 9 projects
-
15. py()Used in 8 projects
-
16. call_count()Used in 8 projects
-
17. FILTER_DIRUsed in 8 projects
-
Used in 8 projects
-
19. _mock_name()Used in 7 projects
-
20. reset_mock()Used in 7 projects
-
Used in 7 projects
-
22. _mock_delegate()Used in 7 projects
-
23. _mock_new_name()Used in 7 projects
-
Used in 7 projects
-
Used in 7 projects
-
26. side_effect()Used in 7 projects
-
27. __class__()Used in 7 projects
-
28. configure_mock()Used in 7 projects
-
29. _mock_children()Used in 7 projects
-
30. _mock_parent()Used in 7 projects
-
31. mock_calls()Used in 6 projects
-
32. call_args()Used in 5 projects
-
33. __iter__()Used in 5 projects
-
34. f()Used in 5 projects
-
35. one()Used in 5 projects
-
36. call_args_list()Used in 5 projects
-
37. called()Used in 5 projects
-
38. __dict__()Used in 5 projects
-
39. m()Used in 5 projects
-
40. b()Used in 5 projects
-
41. fish()Used in 5 projects
-
42. x()Used in 5 projects
-
43. y()Used in 5 projects
-
44. spam()Used in 5 projects
-
45. mock_add_spec()Used in 5 projects
-
46. append()Used in 5 projects
-
47. d()Used in 5 projects
-
48. c()Used in 5 projects
-
49. _mock_methods()Used in 5 projects
-
50. a()Used in 5 projects
-
51. three()Used in 5 projects
-
52. attribute()Used in 5 projects
-
53. bam()Used in 5 projects
-
54. bar()Used in 5 projects
-
55. two()Used in 5 projects
-
56. foo()Used in 5 projects
-
57. __something__()Used in 5 projects
-
58. baz()Used in 5 projects
-
59. method_calls()Used in 5 projects
-
60. __name__()Used in 5 projects
-
61. something()Used in 5 projects
-
62. version()Used in 5 projects