Skip to content

Commit ff015f6

Browse files
committed
Fix docs (tox -e regen, plus pre-commit)
1 parent 31c869b commit ff015f6

File tree

2 files changed

+6
-86
lines changed

2 files changed

+6
-86
lines changed

doc/en/cache.rst

+4-82
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ If you run this command for the first time, you can see the print statement:
220220
E +23
221221
222222
test_caching.py:17: AssertionError
223+
-------------------------- Captured stdout setup ---------------------------
224+
running expensive computation...
223225
1 failed in 0.12 seconds
224226
225227
If you run it a second time the value will be retrieved from
@@ -262,92 +264,12 @@ You can always peek at the content of the cache using the
262264
cachedir: $PYTHON_PREFIX/.pytest_cache
263265
------------------------------- cache values -------------------------------
264266
cache/lastfailed contains:
265-
{'a/test_db.py::test_a1': True,
266-
'a/test_db2.py::test_a2': True,
267-
'b/test_error.py::test_root': True,
268-
'failure_demo.py::TestCustomAssertMsg::test_custom_repr': True,
269-
'failure_demo.py::TestCustomAssertMsg::test_multiline': True,
270-
'failure_demo.py::TestCustomAssertMsg::test_single_line': True,
271-
'failure_demo.py::TestFailing::test_not': True,
272-
'failure_demo.py::TestFailing::test_simple': True,
273-
'failure_demo.py::TestFailing::test_simple_multiline': True,
274-
'failure_demo.py::TestMoreErrors::test_compare': True,
275-
'failure_demo.py::TestMoreErrors::test_complex_error': True,
276-
'failure_demo.py::TestMoreErrors::test_global_func': True,
277-
'failure_demo.py::TestMoreErrors::test_instance': True,
278-
'failure_demo.py::TestMoreErrors::test_startswith': True,
279-
'failure_demo.py::TestMoreErrors::test_startswith_nested': True,
280-
'failure_demo.py::TestMoreErrors::test_try_finally': True,
281-
'failure_demo.py::TestMoreErrors::test_z1_unpack_error': True,
282-
'failure_demo.py::TestMoreErrors::test_z2_type_error': True,
283-
'failure_demo.py::TestRaises::test_raise': True,
284-
'failure_demo.py::TestRaises::test_raises': True,
285-
'failure_demo.py::TestRaises::test_raises_doesnt': True,
286-
'failure_demo.py::TestRaises::test_reinterpret_fails_with_print_for_the_fun_of_it': True,
287-
'failure_demo.py::TestRaises::test_some_error': True,
288-
'failure_demo.py::TestRaises::test_tupleerror': True,
289-
'failure_demo.py::TestSpecialisedExplanations::test_eq_attrs': True,
290-
'failure_demo.py::TestSpecialisedExplanations::test_eq_dataclass': True,
291-
'failure_demo.py::TestSpecialisedExplanations::test_eq_dict': True,
292-
'failure_demo.py::TestSpecialisedExplanations::test_eq_list': True,
293-
'failure_demo.py::TestSpecialisedExplanations::test_eq_list_long': True,
294-
'failure_demo.py::TestSpecialisedExplanations::test_eq_long_text': True,
295-
'failure_demo.py::TestSpecialisedExplanations::test_eq_long_text_multiline': True,
296-
'failure_demo.py::TestSpecialisedExplanations::test_eq_longer_list': True,
297-
'failure_demo.py::TestSpecialisedExplanations::test_eq_multiline_text': True,
298-
'failure_demo.py::TestSpecialisedExplanations::test_eq_set': True,
299-
'failure_demo.py::TestSpecialisedExplanations::test_eq_similar_text': True,
300-
'failure_demo.py::TestSpecialisedExplanations::test_eq_text': True,
301-
'failure_demo.py::TestSpecialisedExplanations::test_in_list': True,
302-
'failure_demo.py::TestSpecialisedExplanations::test_not_in_text_multiline': True,
303-
'failure_demo.py::TestSpecialisedExplanations::test_not_in_text_single': True,
304-
'failure_demo.py::TestSpecialisedExplanations::test_not_in_text_single_long': True,
305-
'failure_demo.py::TestSpecialisedExplanations::test_not_in_text_single_long_term': True,
306-
'failure_demo.py::test_attribute': True,
307-
'failure_demo.py::test_attribute_failure': True,
308-
'failure_demo.py::test_attribute_instance': True,
309-
'failure_demo.py::test_attribute_multiple': True,
310-
'failure_demo.py::test_dynamic_compile_shows_nicely': True,
311-
'failure_demo.py::test_generative[3-6]': True,
312-
'test_50.py::test_num[17]': True,
267+
{'test_50.py::test_num[17]': True,
313268
'test_50.py::test_num[25]': True,
314-
'test_anothersmtp.py::test_showhelo': True,
315269
'test_assert1.py::test_function': True,
316270
'test_assert2.py::test_set_comparison': True,
317-
'test_backends.py::test_db_initialized[d2]': True,
318271
'test_caching.py::test_function': True,
319-
'test_checkconfig.py::test_something': True,
320-
'test_class.py::TestClass::test_two': True,
321-
'test_compute.py::test_compute[4]': True,
322-
'test_example.py::test_error': True,
323-
'test_example.py::test_fail': True,
324-
'test_foocompare.py::test_compare': True,
325-
'test_module.py::test_call_fails': True,
326-
'test_module.py::test_ehlo': True,
327-
'test_module.py::test_ehlo[mail.python.org]': True,
328-
'test_module.py::test_ehlo[smtp.gmail.com]': True,
329-
'test_module.py::test_event_simple': True,
330-
'test_module.py::test_fail1': True,
331-
'test_module.py::test_fail2': True,
332-
'test_module.py::test_func2': True,
333-
'test_module.py::test_interface_complex': True,
334-
'test_module.py::test_interface_simple': True,
335-
'test_module.py::test_noop': True,
336-
'test_module.py::test_noop[mail.python.org]': True,
337-
'test_module.py::test_noop[smtp.gmail.com]': True,
338-
'test_module.py::test_setup_fails': True,
339-
'test_parametrize.py::TestClass::test_equals[1-2]': True,
340-
'test_sample.py::test_answer': True,
341-
'test_show_warnings.py::test_one': True,
342-
'test_simple.yml::hello': True,
343-
'test_smtpsimple.py::test_ehlo': True,
344-
'test_step.py::TestUserHandling::test_modification': True,
345-
'test_strings.py::test_valid_string[!]': True,
346-
'test_tmp_path.py::test_create_file': True,
347-
'test_tmpdir.py::test_create_file': True,
348-
'test_tmpdir.py::test_needsfiles': True,
349-
'test_unittest_db.py::MyTest::test_method1': True,
350-
'test_unittest_db.py::MyTest::test_method2': True}
272+
'test_foocompare.py::test_compare': True}
351273
cache/nodeids contains:
352274
['test_caching.py::test_function']
353275
cache/stepwise contains:

doc/en/example/parametrize.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,8 @@ Running it results in some skips if we don't have all the python interpreters in
436436
.. code-block:: pytest
437437
438438
. $ pytest -rs -q multipython.py
439-
...sss...sssssssss...sss... [100%]
440-
========================= short test summary info ==========================
441-
SKIPPED [15] $REGENDOC_TMPDIR/CWD/multipython.py:30: 'python3.4' not found
442-
12 passed, 15 skipped in 0.12 seconds
439+
........................... [100%]
440+
27 passed in 0.12 seconds
443441
444442
Indirect parametrization of optional implementations/imports
445443
--------------------------------------------------------------------

0 commit comments

Comments
 (0)