Skip to content

Commit b26e60c

Browse files
authored
updated documentation
added a default value so a runtime exception does not occur
1 parent 2be06ba commit b26e60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/en/fixture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ containers for different environments. See the example below.
326326
.. code-block:: python
327327
328328
def determine_scope(fixture_name, config):
329-
if config.getoption("--keep-containers"):
329+
if config.getoption("--keep-containers", None):
330330
return "session"
331331
return "function"
332332

0 commit comments

Comments
 (0)