File tree Expand file tree Collapse file tree 1 file changed +20
-17
lines changed Expand file tree Collapse file tree 1 file changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -26,22 +26,6 @@ of a test:
26
26
.. |ci | image :: http://img.shields.io/travis/nicoddemus/pytest-mock.png
27
27
:target: https://travis-ci.org/nicoddemus/pytest-mock
28
28
29
- Requirements
30
- ============
31
-
32
- * Python 2.5+, including Python 3
33
- * pytest
34
- * mock (for Python < 3.3)
35
-
36
- Install
37
- =======
38
-
39
- Install using `pip <http://pip-installer.org/ >`_:
40
-
41
- .. code-block :: console
42
-
43
- $ pip install pytest-mock
44
-
45
29
Usage
46
30
=====
47
31
@@ -63,7 +47,26 @@ The supported methods are:
63
47
* ``mock.patch.object ``: see http://www.voidspace.org.uk/python/mock/patch.html#patch-object.
64
48
* ``mock.patch.multiple ``: see http://www.voidspace.org.uk/python/mock/patch.html#patch-multiple.
65
49
* ``mock.patch.dict ``: see http://www.voidspace.org.uk/python/mock/patch.html#patch-dict.
66
- * ``mock.stopall() ``: stops all active patches at this point.
50
+ * ``mock.stopall() ``: stops all active patches at this point.
51
+
52
+
53
+ Requirements
54
+ ============
55
+
56
+ * Python 2.5+, including Python 3
57
+ * pytest
58
+ * mock (for Python < 3.3)
59
+
60
+
61
+ Install
62
+ =======
63
+
64
+ Install using `pip <http://pip-installer.org/ >`_:
65
+
66
+ .. code-block :: console
67
+
68
+ $ pip install pytest-mock
69
+
67
70
68
71
Why bother with a plugin?
69
72
=========================
You can’t perform that action at this time.
0 commit comments