Clarify where pytest gets the "TESTING" variable from
This commit is contained in:
parent
218d1d6078
commit
911107af95
1 changed files with 2 additions and 1 deletions
|
|
@ -295,7 +295,8 @@ def test(session):
|
|||
|
||||
# The "TESTING" environment variable forces the global `engine`, `connection`,
|
||||
# and `session` objects to be set to `None` and avoid any database connection.
|
||||
# For pytest above this is not necessary as pytest sets this variable itself.
|
||||
# For `pytest` above, `pytest-env` sets it with the "env" option
|
||||
# in the "[tool.pytest.ini_options]" section in pyproject.toml.
|
||||
session.env['TESTING'] = 'true'
|
||||
|
||||
session.run('xdoctest', '--version')
|
||||
|
|
|
|||
Loading…
Reference in a new issue