Skip to content

Commit e24031f

Browse files
committed
Regendocs again, without hypothesis
1 parent 99ef8c6 commit e24031f

20 files changed

+0
-136
lines changed

doc/en/assert.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ you will see the return value of the function call:
2929
$ pytest test_assert1.py
3030
=========================== test session starts ============================
3131
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
32-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
3332
rootdir: $REGENDOC_TMPDIR, inifile:
34-
plugins: hypothesis-3.x.y
3533
collected 1 item
3634
3735
test_assert1.py F [100%]
@@ -175,9 +173,7 @@ if you run this module:
175173
$ pytest test_assert2.py
176174
=========================== test session starts ============================
177175
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
178-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
179176
rootdir: $REGENDOC_TMPDIR, inifile:
180-
plugins: hypothesis-3.x.y
181177
collected 1 item
182178
183179
test_assert2.py F [100%]

doc/en/cache.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ If you then run it with ``--lf``:
8181
$ pytest --lf
8282
=========================== test session starts ============================
8383
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
84-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
8584
rootdir: $REGENDOC_TMPDIR, inifile:
86-
plugins: hypothesis-3.x.y
8785
collected 50 items / 48 deselected
8886
run-last-failure: rerun previous 2 failures
8987
@@ -126,9 +124,7 @@ of ``FF`` and dots):
126124
$ pytest --ff
127125
=========================== test session starts ============================
128126
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
129-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
130127
rootdir: $REGENDOC_TMPDIR, inifile:
131-
plugins: hypothesis-3.x.y
132128
collected 50 items
133129
run-last-failure: rerun previous 2 failures first
134130
@@ -257,9 +253,7 @@ You can always peek at the content of the cache using the
257253
$ pytest --cache-show
258254
=========================== test session starts ============================
259255
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
260-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
261256
rootdir: $REGENDOC_TMPDIR, inifile:
262-
plugins: hypothesis-3.x.y
263257
cachedir: $REGENDOC_TMPDIR/.pytest_cache
264258
------------------------------- cache values -------------------------------
265259
cache/lastfailed contains:

doc/en/capture.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ of the failing function and hide the other one:
6868
$ pytest
6969
=========================== test session starts ============================
7070
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
71-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
7271
rootdir: $REGENDOC_TMPDIR, inifile:
73-
plugins: hypothesis-3.x.y
7472
collected 2 items
7573
7674
test_module.py .F [100%]

doc/en/doctest.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ then you can just invoke ``pytest`` without command line options:
6565
$ pytest
6666
=========================== test session starts ============================
6767
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
68-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
6968
rootdir: $REGENDOC_TMPDIR, inifile: pytest.ini
70-
plugins: hypothesis-3.x.y
7169
collected 1 item
7270
7371
mymodule.py . [100%]

doc/en/example/markers.rst

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ You can then restrict a test run to only run tests marked with ``webtest``:
3535
=========================== test session starts ============================
3636
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
3737
cachedir: .pytest_cache
38-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
3938
rootdir: $REGENDOC_TMPDIR, inifile:
40-
plugins: hypothesis-3.x.y
4139
collecting ... collected 4 items / 3 deselected
4240
4341
test_server.py::test_send_http PASSED [100%]
@@ -52,9 +50,7 @@ Or the inverse, running all tests except the webtest ones:
5250
=========================== test session starts ============================
5351
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
5452
cachedir: .pytest_cache
55-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
5653
rootdir: $REGENDOC_TMPDIR, inifile:
57-
plugins: hypothesis-3.x.y
5854
collecting ... collected 4 items / 1 deselected
5955
6056
test_server.py::test_something_quick PASSED [ 33%]
@@ -76,9 +72,7 @@ tests based on their module, class, method, or function name:
7672
=========================== test session starts ============================
7773
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
7874
cachedir: .pytest_cache
79-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
8075
rootdir: $REGENDOC_TMPDIR, inifile:
81-
plugins: hypothesis-3.x.y
8276
collecting ... collected 1 item
8377
8478
test_server.py::TestClass::test_method PASSED [100%]
@@ -93,9 +87,7 @@ You can also select on the class:
9387
=========================== test session starts ============================
9488
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
9589
cachedir: .pytest_cache
96-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
9790
rootdir: $REGENDOC_TMPDIR, inifile:
98-
plugins: hypothesis-3.x.y
9991
collecting ... collected 1 item
10092
10193
test_server.py::TestClass::test_method PASSED [100%]
@@ -110,9 +102,7 @@ Or select multiple nodes:
110102
=========================== test session starts ============================
111103
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
112104
cachedir: .pytest_cache
113-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
114105
rootdir: $REGENDOC_TMPDIR, inifile:
115-
plugins: hypothesis-3.x.y
116106
collecting ... collected 2 items
117107
118108
test_server.py::TestClass::test_method PASSED [ 50%]
@@ -152,9 +142,7 @@ select tests based on their names:
152142
=========================== test session starts ============================
153143
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
154144
cachedir: .pytest_cache
155-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
156145
rootdir: $REGENDOC_TMPDIR, inifile:
157-
plugins: hypothesis-3.x.y
158146
collecting ... collected 4 items / 3 deselected
159147
160148
test_server.py::test_send_http PASSED [100%]
@@ -169,9 +157,7 @@ And you can also run all tests except the ones that match the keyword:
169157
=========================== test session starts ============================
170158
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
171159
cachedir: .pytest_cache
172-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
173160
rootdir: $REGENDOC_TMPDIR, inifile:
174-
plugins: hypothesis-3.x.y
175161
collecting ... collected 4 items / 1 deselected
176162
177163
test_server.py::test_something_quick PASSED [ 33%]
@@ -188,9 +174,7 @@ Or to select "http" and "quick" tests:
188174
=========================== test session starts ============================
189175
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
190176
cachedir: .pytest_cache
191-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
192177
rootdir: $REGENDOC_TMPDIR, inifile:
193-
plugins: hypothesis-3.x.y
194178
collecting ... collected 4 items / 2 deselected
195179
196180
test_server.py::test_send_http PASSED [ 50%]
@@ -232,8 +216,6 @@ You can ask which markers exist for your test suite - the list includes our just
232216
$ pytest --markers
233217
@pytest.mark.webtest: mark a test as a webtest.
234218

235-
@pytest.mark.hypothesis: Tests which use hypothesis.
236-
237219
@pytest.mark.filterwarnings(warning): add a warning filter to the given test. see https://docs.pytest.org/en/latest/warnings.html#pytest-mark-filterwarnings
238220

239221
@pytest.mark.skip(reason=None): skip the given test function with an optional reason. Example: skip(reason="no way of currently testing this") skips the test.
@@ -383,9 +365,7 @@ the test needs:
383365
$ pytest -E stage2
384366
=========================== test session starts ============================
385367
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
386-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
387368
rootdir: $REGENDOC_TMPDIR, inifile:
388-
plugins: hypothesis-3.x.y
389369
collected 1 item
390370
391371
test_someenv.py s [100%]
@@ -399,9 +379,7 @@ and here is one that specifies exactly the environment needed:
399379
$ pytest -E stage1
400380
=========================== test session starts ============================
401381
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
402-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
403382
rootdir: $REGENDOC_TMPDIR, inifile:
404-
plugins: hypothesis-3.x.y
405383
collected 1 item
406384
407385
test_someenv.py . [100%]
@@ -413,8 +391,6 @@ The ``--markers`` option always gives you a list of available markers::
413391
$ pytest --markers
414392
@pytest.mark.env(name): mark test to run only on named environment
415393

416-
@pytest.mark.hypothesis: Tests which use hypothesis.
417-
418394
@pytest.mark.filterwarnings(warning): add a warning filter to the given test. see https://docs.pytest.org/en/latest/warnings.html#pytest-mark-filterwarnings
419395

420396
@pytest.mark.skip(reason=None): skip the given test function with an optional reason. Example: skip(reason="no way of currently testing this") skips the test.
@@ -570,9 +546,7 @@ then you will see two tests skipped and two executed tests as expected:
570546
$ pytest -rs # this option reports skip reasons
571547
=========================== test session starts ============================
572548
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
573-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
574549
rootdir: $REGENDOC_TMPDIR, inifile:
575-
plugins: hypothesis-3.x.y
576550
collected 4 items
577551
578552
test_plat.py s.s. [100%]
@@ -588,9 +562,7 @@ Note that if you specify a platform via the marker-command line option like this
588562
$ pytest -m linux
589563
=========================== test session starts ============================
590564
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
591-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
592565
rootdir: $REGENDOC_TMPDIR, inifile:
593-
plugins: hypothesis-3.x.y
594566
collected 4 items / 3 deselected
595567
596568
test_plat.py . [100%]
@@ -643,9 +615,7 @@ We can now use the ``-m option`` to select one set:
643615
$ pytest -m interface --tb=short
644616
=========================== test session starts ============================
645617
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
646-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
647618
rootdir: $REGENDOC_TMPDIR, inifile:
648-
plugins: hypothesis-3.x.y
649619
collected 4 items / 2 deselected
650620
651621
test_module.py FF [100%]
@@ -668,9 +638,7 @@ or to select both "event" and "interface" tests:
668638
$ pytest -m "interface or event" --tb=short
669639
=========================== test session starts ============================
670640
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
671-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
672641
rootdir: $REGENDOC_TMPDIR, inifile:
673-
plugins: hypothesis-3.x.y
674642
collected 4 items / 1 deselected
675643
676644
test_module.py FFF [100%]

doc/en/example/nonpython.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ now execute the test specification:
3030
nonpython $ pytest test_simple.yml
3131
=========================== test session starts ============================
3232
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
33-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/nonpython/.hypothesis/examples')
3433
rootdir: $REGENDOC_TMPDIR/nonpython, inifile:
35-
plugins: hypothesis-3.x.y
3634
collected 2 items
3735
3836
test_simple.yml F. [100%]
@@ -67,9 +65,7 @@ consulted when reporting in ``verbose`` mode:
6765
=========================== test session starts ============================
6866
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
6967
cachedir: .pytest_cache
70-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/nonpython/.hypothesis/examples')
7168
rootdir: $REGENDOC_TMPDIR/nonpython, inifile:
72-
plugins: hypothesis-3.x.y
7369
collecting ... collected 2 items
7470
7571
test_simple.yml::hello FAILED [ 50%]
@@ -92,9 +88,7 @@ interesting to just look at the collection tree:
9288
nonpython $ pytest --collect-only
9389
=========================== test session starts ============================
9490
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
95-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/nonpython/.hypothesis/examples')
9691
rootdir: $REGENDOC_TMPDIR/nonpython, inifile:
97-
plugins: hypothesis-3.x.y
9892
collected 2 items
9993
<Package $REGENDOC_TMPDIR/nonpython>
10094
<YamlFile test_simple.yml>

doc/en/example/parametrize.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ objects, they are still using the default pytest representation:
145145
$ pytest test_time.py --collect-only
146146
=========================== test session starts ============================
147147
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
148-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
149148
rootdir: $REGENDOC_TMPDIR, inifile:
150-
plugins: hypothesis-3.x.y
151149
collected 8 items
152150
<Module test_time.py>
153151
<Function test_timedistance_v0[a0-b0-expected0]>
@@ -205,9 +203,7 @@ this is a fully self-contained example which you can run with:
205203
$ pytest test_scenarios.py
206204
=========================== test session starts ============================
207205
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
208-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
209206
rootdir: $REGENDOC_TMPDIR, inifile:
210-
plugins: hypothesis-3.x.y
211207
collected 4 items
212208
213209
test_scenarios.py .... [100%]
@@ -221,9 +217,7 @@ If you just collect tests you'll also nicely see 'advanced' and 'basic' as varia
221217
$ pytest --collect-only test_scenarios.py
222218
=========================== test session starts ============================
223219
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
224-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
225220
rootdir: $REGENDOC_TMPDIR, inifile:
226-
plugins: hypothesis-3.x.y
227221
collected 4 items
228222
<Module test_scenarios.py>
229223
<Class TestSampleWithScenarios>
@@ -289,9 +283,7 @@ Let's first see how it looks like at collection time:
289283
$ pytest test_backends.py --collect-only
290284
=========================== test session starts ============================
291285
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
292-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
293286
rootdir: $REGENDOC_TMPDIR, inifile:
294-
plugins: hypothesis-3.x.y
295287
collected 2 items
296288
<Module test_backends.py>
297289
<Function test_db_initialized[d1]>
@@ -356,9 +348,7 @@ The result of this test will be successful:
356348
$ pytest test_indirect_list.py --collect-only
357349
=========================== test session starts ============================
358350
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
359-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
360351
rootdir: $REGENDOC_TMPDIR, inifile:
361-
plugins: hypothesis-3.x.y
362352
collected 1 item
363353
<Module test_indirect_list.py>
364354
<Function test_indirect[a-b]>
@@ -492,9 +482,7 @@ If you run this with reporting for skips enabled:
492482
$ pytest -rs test_module.py
493483
=========================== test session starts ============================
494484
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
495-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
496485
rootdir: $REGENDOC_TMPDIR, inifile:
497-
plugins: hypothesis-3.x.y
498486
collected 2 items
499487
500488
test_module.py .s [100%]
@@ -552,9 +540,7 @@ Then run ``pytest`` with verbose mode and with only the ``basic`` marker:
552540
=========================== test session starts ============================
553541
platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y -- $PYTHON_PREFIX/bin/python3.6
554542
cachedir: .pytest_cache
555-
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('$REGENDOC_TMPDIR/.hypothesis/examples')
556543
rootdir: $REGENDOC_TMPDIR, inifile:
557-
plugins: hypothesis-3.x.y
558544
collecting ... collected 17 items / 14 deselected
559545
560546
test_pytest_param_example.py::test_eval[1+7-8] PASSED [ 33%]

0 commit comments

Comments
 (0)