From 0ebac22bb2c1d199ab8a36179f9564515c4a2156 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 25 Sep 2015 18:41:07 +0200 Subject: [PATCH] Regenerate fixture list doc with cache docstring. --- doc/en/builtin.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/en/builtin.rst b/doc/en/builtin.rst index 39ca0c692..fb5cd69ee 100644 --- a/doc/en/builtin.rst +++ b/doc/en/builtin.rst @@ -74,7 +74,15 @@ You can ask for available builtin or project-custom $ py.test -q --fixtures cache - $PYTHON_PREFIX/lib/python3.4/site-packages/_pytest/cacheprovider.py:176: no docstring available + Return a cache object that can persist state between testing sessions. + + cache.get(key, default) + cache.set(key, value) + + Keys must be strings not containing a "/" separator. Add a unique identifier + (such as plugin/app name) to avoid clashes with other cache users. + + Values can be any object handled by the json stdlib module. capsys enables capturing of writes to sys.stdout/sys.stderr and makes captured output available via ``capsys.readouterr()`` method calls