IS_RUNNING_TESTS
config should also detect Pytest runner
#2136
Labels
IS_RUNNING_TESTS
config should also detect Pytest runner
#2136
One may presume that
pytest
so popular that it is used with Django projects as often as the built-inmanage.py test
framework (usually including plugins, e.g.pytest-django
). However, theIS_RUNNING_TESTS
setting detects only the latter by default by looking for"test"
insys.argv
.Updating:
django-debug-toolbar/debug_toolbar/settings.py
Line 46 in cf71ded
by:
NOTE: Using
PYTEST_VERSION
variable is a recommended way for determining whetherpytest
is running; see pytest-dev/pytest#9502 (comment).The text was updated successfully, but these errors were encountered: