updated documentation
added a default value so a runtime exception does not occur
This commit is contained in:
parent
2be06ba67e
commit
b26e60c2da
|
@ -326,7 +326,7 @@ containers for different environments. See the example below.
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
def determine_scope(fixture_name, config):
|
def determine_scope(fixture_name, config):
|
||||||
if config.getoption("--keep-containers"):
|
if config.getoption("--keep-containers", None):
|
||||||
return "session"
|
return "session"
|
||||||
return "function"
|
return "function"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue