From 732cc2687d3a28209ed696b3fb5d0ee220c13dd0 Mon Sep 17 00:00:00 2001 From: Jose Carlos Menezes Date: Mon, 1 Oct 2018 14:31:28 -0300 Subject: [PATCH 1/2] Add possible values for fixture scope to docs --- doc/en/fixture.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/en/fixture.rst b/doc/en/fixture.rst index 8ea13c7f4..e48e055fe 100644 --- a/doc/en/fixture.rst +++ b/doc/en/fixture.rst @@ -171,6 +171,7 @@ to cause the decorated ``smtp_connection`` fixture function to only be invoked once per test *module* (the default is to invoke once per test *function*). Multiple test functions in a test module will thus each receive the same ``smtp_connection`` fixture instance, thus saving time. +Possible values for ``scope`` are: ``function``, ``class``, ``module``, ``package`` or ``session``. The next example puts the fixture function into a separate ``conftest.py`` file so that tests from multiple test modules in the directory can From 4dc73bda45b3cbf1bc42429b29943c1557db5a6d Mon Sep 17 00:00:00 2001 From: Jose Carlos Menezes Date: Mon, 1 Oct 2018 14:41:30 -0300 Subject: [PATCH 2/2] Update changelog --- changelog/3928.doc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/3928.doc.rst diff --git a/changelog/3928.doc.rst b/changelog/3928.doc.rst new file mode 100644 index 000000000..d61b110ae --- /dev/null +++ b/changelog/3928.doc.rst @@ -0,0 +1 @@ +Add possible values for fixture scope to docs.