Skip to content

Commit d746589

Browse files
committed
Regendoc again
1 parent 01151ff commit d746589

20 files changed

+474
-384
lines changed

doc/en/assert.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ you will see the return value of the function call:
2727
.. code-block:: pytest
2828
2929
$ pytest test_assert1.py
30-
================================ test session starts =================================
30+
=========================== test session starts ============================
3131
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
3232
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
3333
rootdir: $REGENDOC_TMPDIR, inifile:
3434
plugins: hypothesis-3.x.y
3535
collected 1 item
3636
37-
test_assert1.py F [100%]
37+
test_assert1.py F [100%]
3838
39-
====================================== FAILURES ======================================
40-
___________________________________ test_function ____________________________________
39+
================================= FAILURES =================================
40+
______________________________ test_function _______________________________
4141
4242
def test_function():
4343
> assert f() == 4
4444
E assert 3 == 4
4545
E + where 3 = f()
4646
4747
test_assert1.py:5: AssertionError
48-
============================== 1 failed in 0.12 seconds ==============================
48+
========================= 1 failed in 0.12 seconds =========================
4949
5050
``pytest`` has support for showing the values of the most common subexpressions
5151
including calls, attributes, comparisons, and binary and unary
@@ -173,17 +173,17 @@ if you run this module:
173173
.. code-block:: pytest
174174
175175
$ pytest test_assert2.py
176-
================================ test session starts =================================
176+
=========================== test session starts ============================
177177
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
178178
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
179179
rootdir: $REGENDOC_TMPDIR, inifile:
180180
plugins: hypothesis-3.x.y
181181
collected 1 item
182182
183-
test_assert2.py F [100%]
183+
test_assert2.py F [100%]
184184
185-
====================================== FAILURES ======================================
186-
________________________________ test_set_comparison _________________________________
185+
================================= FAILURES =================================
186+
___________________________ test_set_comparison ____________________________
187187
188188
def test_set_comparison():
189189
set1 = set("1308")
@@ -197,7 +197,7 @@ if you run this module:
197197
E Use -v to get the full diff
198198
199199
test_assert2.py:5: AssertionError
200-
============================== 1 failed in 0.12 seconds ==============================
200+
========================= 1 failed in 0.12 seconds =========================
201201
202202
Special comparisons are done for a number of cases:
203203

@@ -247,9 +247,9 @@ the conftest file:
247247
.. code-block:: pytest
248248
249249
$ pytest -q test_foocompare.py
250-
F [100%]
251-
====================================== FAILURES ======================================
252-
____________________________________ test_compare ____________________________________
250+
F [100%]
251+
================================= FAILURES =================================
252+
_______________________________ test_compare _______________________________
253253
254254
def test_compare():
255255
f1 = Foo(1)

doc/en/cache.rst

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ If you run this for the first time you will see two failures:
4848
.. code-block:: pytest
4949
5050
$ pytest -q
51-
.................F.......F........................ [100%]
52-
====================================== FAILURES ======================================
53-
____________________________________ test_num[17] ____________________________________
51+
.................F.......F........................ [100%]
52+
================================= FAILURES =================================
53+
_______________________________ test_num[17] _______________________________
5454
5555
i = 17
5656
@@ -61,7 +61,7 @@ If you run this for the first time you will see two failures:
6161
E Failed: bad luck
6262
6363
test_50.py:6: Failed
64-
____________________________________ test_num[25] ____________________________________
64+
_______________________________ test_num[25] _______________________________
6565
6666
i = 25
6767
@@ -79,18 +79,18 @@ If you then run it with ``--lf``:
7979
.. code-block:: pytest
8080
8181
$ pytest --lf
82-
================================ test session starts =================================
82+
=========================== test session starts ============================
8383
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
8484
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
8585
rootdir: $REGENDOC_TMPDIR, inifile:
8686
plugins: hypothesis-3.x.y
8787
collected 50 items / 48 deselected
8888
run-last-failure: rerun previous 2 failures
8989
90-
test_50.py FF [100%]
90+
test_50.py FF [100%]
9191
92-
====================================== FAILURES ======================================
93-
____________________________________ test_num[17] ____________________________________
92+
================================= FAILURES =================================
93+
_______________________________ test_num[17] _______________________________
9494
9595
i = 17
9696
@@ -101,7 +101,7 @@ If you then run it with ``--lf``:
101101
E Failed: bad luck
102102
103103
test_50.py:6: Failed
104-
____________________________________ test_num[25] ____________________________________
104+
_______________________________ test_num[25] _______________________________
105105
106106
i = 25
107107
@@ -112,7 +112,7 @@ If you then run it with ``--lf``:
112112
E Failed: bad luck
113113
114114
test_50.py:6: Failed
115-
====================== 2 failed, 48 deselected in 0.12 seconds =======================
115+
================= 2 failed, 48 deselected in 0.12 seconds ==================
116116
117117
You have run only the two failing test from the last run, while 48 tests have
118118
not been run ("deselected").
@@ -124,18 +124,18 @@ of ``FF`` and dots):
124124
.. code-block:: pytest
125125
126126
$ pytest --ff
127-
================================ test session starts =================================
127+
=========================== test session starts ============================
128128
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
129129
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
130130
rootdir: $REGENDOC_TMPDIR, inifile:
131131
plugins: hypothesis-3.x.y
132132
collected 50 items
133133
run-last-failure: rerun previous 2 failures first
134134
135-
test_50.py FF................................................ [100%]
135+
test_50.py FF................................................ [100%]
136136
137-
====================================== FAILURES ======================================
138-
____________________________________ test_num[17] ____________________________________
137+
================================= FAILURES =================================
138+
_______________________________ test_num[17] _______________________________
139139
140140
i = 17
141141
@@ -146,7 +146,7 @@ of ``FF`` and dots):
146146
E Failed: bad luck
147147
148148
test_50.py:6: Failed
149-
____________________________________ test_num[25] ____________________________________
149+
_______________________________ test_num[25] _______________________________
150150
151151
i = 25
152152
@@ -157,7 +157,7 @@ of ``FF`` and dots):
157157
E Failed: bad luck
158158
159159
test_50.py:6: Failed
160-
======================== 2 failed, 48 passed in 0.12 seconds =========================
160+
=================== 2 failed, 48 passed in 0.12 seconds ====================
161161
162162
.. _`config.cache`:
163163

@@ -209,9 +209,9 @@ If you run this command for the first time, you can see the print statement:
209209
.. code-block:: pytest
210210
211211
$ pytest -q
212-
F [100%]
213-
====================================== FAILURES ======================================
214-
___________________________________ test_function ____________________________________
212+
F [100%]
213+
================================= FAILURES =================================
214+
______________________________ test_function _______________________________
215215
216216
mydata = 42
217217
@@ -220,7 +220,7 @@ If you run this command for the first time, you can see the print statement:
220220
E assert 42 == 23
221221
222222
test_caching.py:17: AssertionError
223-
------------------------------- Captured stdout setup --------------------------------
223+
-------------------------- Captured stdout setup ---------------------------
224224
running expensive computation...
225225
1 failed in 0.12 seconds
226226
@@ -230,9 +230,9 @@ the cache and nothing will be printed:
230230
.. code-block:: pytest
231231
232232
$ pytest -q
233-
F [100%]
234-
====================================== FAILURES ======================================
235-
___________________________________ test_function ____________________________________
233+
F [100%]
234+
================================= FAILURES =================================
235+
______________________________ test_function _______________________________
236236
237237
mydata = 42
238238
@@ -255,13 +255,13 @@ You can always peek at the content of the cache using the
255255
.. code-block:: pytest
256256
257257
$ pytest --cache-show
258-
================================ test session starts =================================
258+
=========================== test session starts ============================
259259
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
260260
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
261261
rootdir: $REGENDOC_TMPDIR, inifile:
262262
plugins: hypothesis-3.x.y
263263
cachedir: $REGENDOC_TMPDIR/.pytest_cache
264-
------------------------------------ cache values ------------------------------------
264+
------------------------------- cache values -------------------------------
265265
cache/lastfailed contains:
266266
{'test_caching.py::test_function': True}
267267
cache/nodeids contains:
@@ -271,7 +271,7 @@ You can always peek at the content of the cache using the
271271
example/value contains:
272272
42
273273
274-
============================ no tests ran in 0.12 seconds ============================
274+
======================= no tests ran in 0.12 seconds =======================
275275
276276
Clearing Cache content
277277
-------------------------------

doc/en/capture.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,26 @@ of the failing function and hide the other one:
6666
.. code-block:: pytest
6767
6868
$ pytest
69-
================================ test session starts =================================
69+
=========================== test session starts ============================
7070
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
7171
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
7272
rootdir: $REGENDOC_TMPDIR, inifile:
7373
plugins: hypothesis-3.x.y
7474
collected 2 items
7575
76-
test_module.py .F [100%]
76+
test_module.py .F [100%]
7777
78-
====================================== FAILURES ======================================
79-
_____________________________________ test_func2 _____________________________________
78+
================================= FAILURES =================================
79+
________________________________ test_func2 ________________________________
8080
8181
def test_func2():
8282
> assert False
8383
E assert False
8484
8585
test_module.py:9: AssertionError
86-
------------------------------- Captured stdout setup --------------------------------
86+
-------------------------- Captured stdout setup ---------------------------
8787
setting up <function test_func2 at 0xdeadbeef>
88-
========================= 1 failed, 1 passed in 0.12 seconds =========================
88+
==================== 1 failed, 1 passed in 0.12 seconds ====================
8989
9090
Accessing captured output from a test function
9191
---------------------------------------------------

doc/en/doctest.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ then you can just invoke ``pytest`` without command line options:
6363
.. code-block:: pytest
6464
6565
$ pytest
66-
================================ test session starts =================================
66+
=========================== test session starts ============================
6767
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
6868
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
6969
rootdir: $REGENDOC_TMPDIR, inifile: pytest.ini
7070
plugins: hypothesis-3.x.y
7171
collected 1 item
7272
73-
mymodule.py . [100%]
73+
mymodule.py . [100%]
7474
75-
============================== 1 passed in 0.12 seconds ==============================
75+
========================= 1 passed in 0.12 seconds =========================
7676
7777
It is possible to use fixtures using the ``getfixture`` helper::
7878

0 commit comments

Comments
 (0)