We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e60294 + 771c453 commit 75ecd94Copy full SHA for 75ecd94
doc/en/fixture.rst
@@ -798,6 +798,10 @@ If we run it, we get two passing tests::
798
799
Here is how autouse fixtures work in other scopes:
800
801
+- autouse fixtures obey the ``scope=`` keyword-argument: if an autouse fixture
802
+ has ``scope='session'`` it will only be run once, no matter where it is
803
+ defined. ``scope='class'`` means it will be run once per class, etc.
804
+
805
- if an autouse fixture is defined in a test module, all its test
806
functions automatically use it.
807
0 commit comments