Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
bb88c05
Add the Store API and initial documentation.
tim-schilling May 17, 2023
19b5695
Remove config from docs as sphinx says it's misspelled.
tim-schilling May 17, 2023
97fcda7
Switch to Store.request_ids and remove serialization force_str.
tim-schilling Jun 17, 2023
487dfb3
Log serialization warning when a panel errors. (#1810)
tim-schilling Aug 21, 2023
e7cf575
Ignore common venv folder.
tim-schilling Aug 20, 2023
c4201fa
Rename store_id variants to request_id
Aug 20, 2023
bbbbb34
Support serializable panels. This is a WIP and needs clean-up.
Aug 20, 2023
e2f695b
Support serializable sql panel
tim-schilling Aug 21, 2023
14a5e0c
Make Panel.panel_id a classmember.
tim-schilling Aug 21, 2023
a31115f
Force everything to a string if it can't be serialized.
tim-schilling Aug 29, 2023
71edcf5
Support serialization of FunctionCall
tim-schilling Aug 29, 2023
c03f08f
Update all panels to use data from get_stats on render
tim-schilling Sep 5, 2023
47bdabe
Extend example app to have an async version.
tim-schilling Sep 5, 2023
dd53424
Merge branch 'main' into serialize-panels
tim-schilling Jul 10, 2024
16e02f5
Rework the alerts panel to be compatible with serialization.
tim-schilling Jul 10, 2024
3e4c484
Make template panel serializable.
tim-schilling Jul 10, 2024
f4ff5f4
Avoid caching the config settings.
Jul 11, 2024
d3730a6
Fix tests for serializable changes with selenium.
Jul 11, 2024
c660269
Comment out the async button because it breaks the wsgi app.
Jul 11, 2024
8402c4d
Hack: Sleep before checking to see if the history panel auto updated.
Jul 11, 2024
e1c0755
Improve clarity of record_stats for serialization. (#1965)
tim-schilling Jul 19, 2024
5a21920
Merge branch 'main' into serializable
tim-schilling Feb 9, 2025
89c4786
Added check for pytest as test runner for IS_RUNNING_TESTS.
tim-schilling May 14, 2025
73eea66
Fixes #2073 -- Added DatabaseStore for persistent debug data storage.…
dr-rompecabezas May 14, 2025
153c22b
Merge branch 'main' into serializable
tim-schilling May 15, 2025
f8bfb0d
Move serializable changes into the main change log.
tim-schilling May 15, 2025
bf77c70
Updated replaceToolbarState to use request id.
tim-schilling May 15, 2025
0cbf478
Merge branch 'main' into serializable
matthiask May 23, 2025
7a638c7
Removed unnecessary SQLPanel.record_stats
tim-schilling Jun 3, 2025
2fafbb4
Merge branch 'main' into serializable
tim-schilling Jul 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added check for pytest as test runner for IS_RUNNING_TESTS.
  • Loading branch information
tim-schilling committed May 14, 2025
commit 89c47864dbb8592982d0568c2996b8cb72e6f121
3 changes: 2 additions & 1 deletion debug_toolbar/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys
import warnings
from functools import cache
Expand Down Expand Up @@ -43,7 +44,7 @@
"SQL_WARNING_THRESHOLD": 500, # milliseconds
"OBSERVE_REQUEST_CALLBACK": "debug_toolbar.toolbar.observe_request",
"TOOLBAR_LANGUAGE": None,
"IS_RUNNING_TESTS": "test" in sys.argv,
"IS_RUNNING_TESTS": "test" in sys.argv or "PYTEST_VERSION" in os.environ,
"UPDATE_ON_FETCH": False,
}

Expand Down
3 changes: 3 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Change log
Pending
-------

* Added support for checking if pytest as the test runner when determining
if tests are running.

5.2.0 (2025-04-29)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Toolbar options

* ``IS_RUNNING_TESTS``

Default: ``"test" in sys.argv``
Default: ``"test" in sys.argv or "PYTEST_VERSION" in os.environ``

This setting whether the application is running tests. If this resolves to
``True``, the toolbar will prevent you from running tests. This should only
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ can do this by adding another setting:

.. code-block:: python

TESTING = "test" in sys.argv
TESTING = "test" in sys.argv or "PYTEST_VERSION" in os.environ

if not TESTING:
INSTALLED_APPS = [
Expand Down