SYMBOL INDEX (826 symbols across 85 files) FILE: debug_toolbar/_compat.py function login_not_required (line 7) | def login_not_required(view_func): function get_nonce (line 19) | def get_nonce(request): FILE: debug_toolbar/_stubs.py class InspectStack (line 9) | class InspectStack(NamedTuple): class RenderContext (line 21) | class RenderContext(dj_template.context.RenderContext): class RequestContext (line 25) | class RequestContext(dj_template.RequestContext): class GetResponse (line 30) | class GetResponse(Protocol): method __call__ (line 31) | def __call__(self, request: HttpRequest) -> HttpResponse: ... FILE: debug_toolbar/apps.py class DebugToolbarConfig (line 16) | class DebugToolbarConfig(AppConfig): method ready (line 20) | def ready(self): method import_models (line 29) | def import_models(self): function _manage_migrations_visibility (line 43) | def _manage_migrations_visibility(app_name): function check_template_config (line 58) | def check_template_config(config): function check_middleware (line 95) | def check_middleware(app_configs, **kwargs): function check_panel_configs (line 174) | def check_panel_configs(app_configs, **kwargs): function is_middleware_class (line 185) | def is_middleware_class(middleware_class, middleware_path): function check_panels (line 196) | def check_panels(app_configs, **kwargs): function js_mimetype_check (line 212) | def js_mimetype_check(app_configs, **kwargs): function debug_toolbar_installed_when_running_tests_check (line 243) | def debug_toolbar_installed_when_running_tests_check(app_configs, **kwar... function check_settings (line 291) | def check_settings(app_configs, **kwargs): FILE: debug_toolbar/decorators.py function require_show_toolbar (line 10) | def require_show_toolbar(view): function render_with_toolbar_language (line 39) | def render_with_toolbar_language(view): FILE: debug_toolbar/forms.py class SignedDataForm (line 10) | class SignedDataForm(forms.Form): method __init__ (line 30) | def __init__(self, *args, **kwargs): method clean_signed (line 36) | def clean_signed(self): method verified_data (line 45) | def verified_data(self): method sign (line 49) | def sign(cls, data): FILE: debug_toolbar/management/commands/debugsqlshell.py class PrintQueryWrapper (line 20) | class PrintQueryWrapper(base_module.CursorDebugWrapper): method execute (line 21) | def execute(self, sql, params=()): FILE: debug_toolbar/middleware.py function show_toolbar (line 29) | def show_toolbar(request: HttpRequest) -> bool: function show_toolbar_with_docker (line 44) | def show_toolbar_with_docker(request: HttpRequest) -> bool: function show_toolbar_func_or_path (line 76) | def show_toolbar_func_or_path() -> Callable: function get_show_toolbar (line 91) | def get_show_toolbar(async_mode) -> Callable: class DebugToolbarMiddleware (line 108) | class DebugToolbarMiddleware: method __init__ (line 117) | def __init__(self, get_response: GetResponse): method __call__ (line 128) | def __call__(self, request: HttpRequest) -> HttpResponse: method __acall__ (line 153) | async def __acall__(self, request: HttpRequest) -> HttpResponse: method _postprocess (line 181) | def _postprocess( method get_headers (line 217) | def get_headers(request: HttpRequest, panels: list[Panel]) -> dict[str... FILE: debug_toolbar/migrations/0001_initial.py class Migration (line 4) | class Migration(migrations.Migration): FILE: debug_toolbar/models.py class HistoryEntry (line 5) | class HistoryEntry(models.Model): class Meta (line 10) | class Meta: method __str__ (line 15) | def __str__(self): FILE: debug_toolbar/panels/__init__.py class Panel (line 10) | class Panel: method __init__ (line 17) | def __init__(self, toolbar, get_response: GetResponse): method panel_id (line 25) | def panel_id(cls) -> str: method enabled (line 29) | def enabled(self) -> bool: method nav_title (line 61) | def nav_title(self): method nav_subtitle (line 68) | def nav_subtitle(self): method has_content (line 75) | def has_content(self): method is_historical (line 83) | def is_historical(self): method title (line 92) | def title(self): method template (line 101) | def template(self): method content (line 111) | def content(self): method scripts (line 123) | def scripts(self): method ready (line 136) | def ready(cls): method get_urls (line 148) | def get_urls(cls): method enable_instrumentation (line 156) | def enable_instrumentation(self): method disable_instrumentation (line 172) | def disable_instrumentation(self): method record_stats (line 184) | def record_stats(self, stats): method get_stats (line 199) | def get_stats(self): method record_server_timing (line 205) | def record_server_timing(self, key, title, value): method get_server_timing_stats (line 214) | def get_server_timing_stats(self): method process_request (line 222) | def process_request(self, request): method get_headers (line 233) | def get_headers(self, request): method generate_stats (line 259) | def generate_stats(self, request, response): method generate_server_timing (line 271) | def generate_server_timing(self, request, response): method load_stats_from_store (line 281) | def load_stats_from_store(self, data): method run_checks (line 291) | def run_checks(cls): FILE: debug_toolbar/panels/alerts.py class FormParser (line 9) | class FormParser(HTMLParser): method __init__ (line 15) | def __init__(self): method handle_starttag (line 23) | def handle_starttag(self, tag, attrs): method handle_endtag (line 54) | def handle_endtag(self, tag): class AlertsPanel (line 60) | class AlertsPanel(Panel): method __init__ (line 83) | def __init__(self, *args, **kwargs): method nav_subtitle (line 88) | def nav_subtitle(self): method add_alert (line 95) | def add_alert(self, alert): method check_invalid_file_form_configuration (line 98) | def check_invalid_file_form_configuration(self, html_content): method generate_stats (line 143) | def generate_stats(self, request, response): FILE: debug_toolbar/panels/cache.py function _monkey_patch_method (line 33) | def _monkey_patch_method(cache, name, alias): function _monkey_patch_cache (line 47) | def _monkey_patch_cache(cache, alias, panel): class CachePanel (line 54) | class CachePanel(Panel): method __init__ (line 65) | def __init__(self, *args, **kwargs): method current_instance (line 74) | def current_instance(cls): method ready (line 85) | def ready(cls): method _store_call_info (line 104) | def _store_call_info( method _record_call (line 140) | def _record_call(self, cache, alias, name, original_method, args, kwar... method nav_subtitle (line 172) | def nav_subtitle(self): method title (line 182) | def title(self): method enable_instrumentation (line 190) | def enable_instrumentation(self): method disable_instrumentation (line 203) | def disable_instrumentation(self): method initialized_caches (line 209) | def initialized_caches(self): method generate_stats (line 220) | def generate_stats(self, request, response): method generate_server_timing (line 233) | def generate_server_timing(self, request, response): FILE: debug_toolbar/panels/community.py class CommunityPanel (line 6) | class CommunityPanel(Panel): FILE: debug_toolbar/panels/headers.py class HeadersPanel (line 6) | class HeadersPanel(Panel): method process_request (line 37) | def process_request(self, request): method generate_stats (line 50) | def generate_stats(self, request, response): function is_http_header (line 55) | def is_http_header(wsgi_key): function unmangle (line 61) | def unmangle(wsgi_key): FILE: debug_toolbar/panels/history/forms.py class HistoryStoreForm (line 4) | class HistoryStoreForm(forms.Form): FILE: debug_toolbar/panels/history/panel.py class HistoryPanel (line 17) | class HistoryPanel(Panel): method get_headers (line 25) | def get_headers(self, request: HttpRequest) -> dict: method enabled (line 34) | def enabled(self) -> bool: method is_historical (line 40) | def is_historical(self) -> bool: method get_urls (line 45) | def get_urls(cls) -> list[URLPattern]: method nav_subtitle (line 52) | def nav_subtitle(self) -> str: method generate_stats (line 55) | def generate_stats(self, request: HttpRequest, response: HttpResponse)... method content (line 87) | def content(self) -> str: method scripts (line 118) | def scripts(self) -> list[str]: FILE: debug_toolbar/panels/history/views.py function history_sidebar (line 14) | def history_sidebar( function history_refresh (line 48) | def history_refresh( FILE: debug_toolbar/panels/profiling.py class FunctionCall (line 14) | class FunctionCall: method __init__ (line 15) | def __init__( method parent_classes (line 30) | def parent_classes(self): method background (line 33) | def background(self): method is_project_func (line 37) | def is_project_func(self): method func_std_string (line 57) | def func_std_string(self): # match what old profile produced method subfuncs (line 89) | def subfuncs(self): method count (line 105) | def count(self): method tottime (line 108) | def tottime(self): method cumtime (line 111) | def cumtime(self): method tottime_per_call (line 115) | def tottime_per_call(self): method cumtime_per_call (line 123) | def cumtime_per_call(self): method indent (line 131) | def indent(self): method serialize (line 134) | def serialize(self): class ProfilingPanel (line 150) | class ProfilingPanel(Panel): method process_request (line 161) | def process_request(self, request): method add_node (line 165) | def add_node(self, func_list, func, max_depth, cum_time): method generate_stats (line 178) | def generate_stats(self, request, response): FILE: debug_toolbar/panels/redirects.py class RedirectsPanel (line 10) | class RedirectsPanel(Panel): method _process_response (line 21) | def _process_response(self, response): method aprocess_request (line 31) | async def aprocess_request(self, request, response_coroutine): method process_request (line 40) | def process_request(self, request): method get_interception_response (line 46) | def get_interception_response(self, response, redirect_to): FILE: debug_toolbar/panels/request.py class RequestPanel (line 9) | class RequestPanel(Panel): method nav_subtitle (line 19) | def nav_subtitle(self): method generate_stats (line 26) | def generate_stats(self, request, response): FILE: debug_toolbar/panels/settings.py function safe_pformat (line 11) | def safe_pformat(obj): class SettingsPanel (line 18) | class SettingsPanel(Panel): method title (line 29) | def title(self): method generate_stats (line 34) | def generate_stats(self, request, response): FILE: debug_toolbar/panels/signals.py class SignalsPanel (line 28) | class SignalsPanel(Panel): method nav_subtitle (line 51) | def nav_subtitle(self): method signals (line 72) | def signals(self): method generate_stats (line 79) | def generate_stats(self, request, response): FILE: debug_toolbar/panels/sql/forms.py class SQLSelectForm (line 13) | class SQLSelectForm(forms.Form): method clean_raw_sql (line 24) | def clean_raw_sql(self): method clean_params (line 32) | def clean_params(self): method clean_alias (line 40) | def clean_alias(self): method clean (line 48) | def clean(self): method select (line 72) | def select(self): method explain (line 82) | def explain(self): method profile (line 101) | def profile(self): method reformat_sql (line 127) | def reformat_sql(self): method connection (line 131) | def connection(self): method cursor (line 135) | def cursor(self): FILE: debug_toolbar/panels/sql/panel.py function get_isolation_level_display (line 25) | def get_isolation_level_display(vendor, level): function get_transaction_status_display (line 57) | def get_transaction_status_display(vendor, level): function _similar_query_key (line 85) | def _similar_query_key(query): function _duplicate_query_key (line 89) | def _duplicate_query_key(query): function _process_query_groups (line 97) | def _process_query_groups(query_groups, databases, colors, name): class SQLPanel (line 112) | class SQLPanel(Panel): method __init__ (line 120) | def __init__(self, *args, **kwargs): method new_transaction_id (line 128) | def new_transaction_id(self, alias): method current_transaction_id (line 136) | def current_transaction_id(self, alias): method record (line 149) | def record(self, **kwargs): method nav_subtitle (line 168) | def nav_subtitle(self): method title (line 181) | def title(self): method get_urls (line 192) | def get_urls(cls): method aenable_instrumentation (line 199) | async def aenable_instrumentation(self): method enable_instrumentation (line 206) | def enable_instrumentation(self): method disable_instrumentation (line 212) | def disable_instrumentation(self): method generate_stats (line 216) | def generate_stats(self, request, response): method generate_server_timing (line 311) | def generate_server_timing(self, request, response): method content (line 320) | def content(self): FILE: debug_toolbar/panels/sql/tracking.py class SQLQueryTriggered (line 38) | class SQLQueryTriggered(Exception): function wrap_cursor (line 42) | def wrap_cursor(connection): function patch_cursor_wrapper_with_mixin (line 90) | def patch_cursor_wrapper_with_mixin(base_wrapper, mixin): class DjDTCursorWrapperMixin (line 97) | class DjDTCursorWrapperMixin: method __init__ (line 98) | def __init__(self, cursor, db, logger): class ExceptionCursorMixin (line 104) | class ExceptionCursorMixin(DjDTCursorWrapperMixin): method __getattr__ (line 110) | def __getattr__(self, attr): class NormalCursorMixin (line 114) | class NormalCursorMixin(DjDTCursorWrapperMixin): method _decode (line 119) | def _decode(self, param): method _last_executed_query (line 140) | def _last_executed_query(self, sql, params): method _record (line 153) | def _record(self, method, sql, params): method callproc (line 239) | def callproc(self, procname, params=None): method execute (line 242) | def execute(self, sql, params=None): method executemany (line 245) | def executemany(self, sql, param_list): FILE: debug_toolbar/panels/sql/utils.py class ElideSelectListsFilter (line 13) | class ElideSelectListsFilter: method process (line 17) | def process(self, stream): method elide_until_from (line 28) | def elide_until_from(stream): class BoldKeywordFilter (line 53) | class BoldKeywordFilter: method process (line 56) | def process(self, stmt): function escaped_value (line 73) | def escaped_value(token): class EscapedStringSerializer (line 81) | class EscapedStringSerializer: method process (line 86) | def process(stmt): function is_select_query (line 90) | def is_select_query(sql): function reformat_sql (line 95) | def reformat_sql(sql, *, with_toggle=False): function parse_sql (line 106) | def parse_sql(sql, *, simplify=False): function get_filter_stack (line 112) | def get_filter_stack(*, simplify): function clear_caches (line 128) | def clear_caches(*, setting, **kwargs): function contrasting_color_generator (line 134) | def contrasting_color_generator(): FILE: debug_toolbar/panels/sql/views.py function get_signed_data (line 12) | def get_signed_data(request): function sql_select (line 25) | def sql_select(request): function sql_explain (line 51) | def sql_explain(request): function sql_profile (line 77) | def sql_profile(request): FILE: debug_toolbar/panels/staticfiles.py class URLMixin (line 18) | class URLMixin: method url (line 19) | def url(self, path, *args, **kwargs): class StaticFilesPanel (line 35) | class StaticFilesPanel(panels.Panel): method title (line 45) | def title(self): method __init__ (line 52) | def __init__(self, *args, **kwargs): method ready (line 59) | def ready(cls): method _store_static_files_signal_handler (line 64) | def _store_static_files_signal_handler(self, sender, staticfile, **kwa... method enable_instrumentation (line 73) | def enable_instrumentation(self): method disable_instrumentation (line 77) | def disable_instrumentation(self): method nav_subtitle (line 84) | def nav_subtitle(self): method generate_stats (line 90) | def generate_stats(self, request, response): method get_staticfiles_finders (line 102) | def get_staticfiles_finders(self): method get_staticfiles_dirs (line 127) | def get_staticfiles_dirs(self): method get_staticfiles_apps (line 137) | def get_staticfiles_apps(self): FILE: debug_toolbar/panels/templates/jinja2.py function patch_jinja_render (line 8) | def patch_jinja_render(): FILE: debug_toolbar/panels/templates/panel.py function _request_context_bind_template (line 40) | def _request_context_bind_template(self, template): class TemplatesPanel (line 67) | class TemplatesPanel(Panel): method __init__ (line 74) | def __init__(self, *args, **kwargs): method _store_template_info (line 81) | def _store_template_info(self, sender, **kwargs): method title (line 107) | def title(self): method nav_subtitle (line 114) | def nav_subtitle(self): method get_urls (line 123) | def get_urls(cls): method enable_instrumentation (line 126) | def enable_instrumentation(self): method disable_instrumentation (line 129) | def disable_instrumentation(self): method process_context_list (line 132) | def process_context_list(self, context_layers): method generate_stats (line 189) | def generate_stats(self, request, response): FILE: debug_toolbar/panels/templates/views.py function template_source (line 15) | def template_source(request): FILE: debug_toolbar/panels/timer.py class TimerPanel (line 15) | class TimerPanel(Panel): method nav_subtitle (line 22) | def nav_subtitle(self): method content (line 43) | def content(self): method scripts (line 58) | def scripts(self): method process_request (line 63) | def process_request(self, request): method serialize_rusage (line 69) | def serialize_rusage(self, data): method generate_stats (line 80) | def generate_stats(self, request, response): method generate_server_timing (line 114) | def generate_server_timing(self, request, response): method _elapsed_ru (line 125) | def _elapsed_ru(start, end, name): FILE: debug_toolbar/panels/versions.py class VersionsPanel (line 10) | class VersionsPanel(Panel): method nav_subtitle (line 18) | def nav_subtitle(self): method generate_stats (line 25) | def generate_stats(self, request, response): method gen_app_versions (line 39) | def gen_app_versions(self): method get_app_version (line 47) | def get_app_version(self, app): method get_version_from_app (line 55) | def get_version_from_app(self, app): FILE: debug_toolbar/sanitize.py function force_str (line 4) | def force_str(s, *args, **kwargs): FILE: debug_toolbar/settings.py function _is_running_tests (line 11) | def _is_running_tests(): function get_config (line 64) | def get_config(): function get_panels (line 91) | def get_panels(): function update_toolbar_config (line 109) | def update_toolbar_config(*, setting, **kwargs): FILE: debug_toolbar/static/debug_toolbar/js/history.js function difference (line 5) | function difference(setA, setB) { function pluckData (line 16) | function pluckData(nodes, key) { function refreshHistory (line 20) | function refreshHistory() { function switchHistory (line 74) | function switchHistory(newRequestId) { FILE: debug_toolbar/static/debug_toolbar/js/timer.js function insertBrowserTiming (line 3) | function insertBrowserTiming() { FILE: debug_toolbar/static/debug_toolbar/js/toolbar.js function onKeyDown (line 3) | function onKeyDown(event) { function getDebugElement (line 9) | function getDebugElement() { method init (line 21) | init() { method hidePanels (line 241) | hidePanels() { method ensureHandleVisibility (line 251) | ensureHandleVisibility() { method hideToolbar (line 260) | hideToolbar() { method hideOneLevel (line 273) | hideOneLevel() { method showToolbar (line 286) | showToolbar() { method updateOnAjax (line 294) | updateOnAjax() { method get (line 351) | get(key) { method set (line 366) | set(key, value, options = {}) { FILE: debug_toolbar/static/debug_toolbar/js/utils.js method on (line 2) | on(root, eventName, selector, fn) { method onPanelRender (line 11) | onPanelRender(root, panelId, fn) { method show (line 26) | show(element) { method hide (line 29) | hide(element) { method toggle (line 32) | toggle(element, value) { method visible (line 39) | visible(element) { method executeScripts (line 42) | executeScripts(scripts) { method applyStyles (line 51) | applyStyles(container) { function ajax (line 73) | function ajax(url, init) { function ajaxForm (line 99) | function ajaxForm(element) { function replaceToolbarState (line 112) | function replaceToolbarState(newRequestId, data) { function debounce (line 126) | function debounce(func, delay) { FILE: debug_toolbar/store.py class DebugToolbarJSONEncoder (line 16) | class DebugToolbarJSONEncoder(DjangoJSONEncoder): method default (line 17) | def default(self, o): function serialize (line 24) | def serialize(data: Any) -> str: function deserialize (line 31) | def deserialize(data: str) -> Any: class BaseStore (line 35) | class BaseStore: method request_ids (line 37) | def request_ids(cls) -> Iterable: method exists (line 42) | def exists(cls, request_id: str) -> bool: method set (line 47) | def set(cls, request_id: str): method clear (line 52) | def clear(cls): method delete (line 57) | def delete(cls, request_id: str): method save_panel (line 62) | def save_panel(cls, request_id: str, panel_id: str, data: Any = None): method panel (line 67) | def panel(cls, request_id: str, panel_id: str) -> Any: class MemoryStore (line 72) | class MemoryStore(BaseStore): method request_ids (line 80) | def request_ids(cls) -> Iterable: method exists (line 85) | def exists(cls, request_id: str) -> bool: method set (line 90) | def set(cls, request_id: str): method clear (line 101) | def clear(cls): method delete (line 107) | def delete(cls, request_id: str): method save_panel (line 115) | def save_panel(cls, request_id: str, panel_id: str, data: Any = None): method panel (line 121) | def panel(cls, request_id: str, panel_id: str) -> Any: method panels (line 131) | def panels(cls, request_id: str) -> Any: class DatabaseStore (line 141) | class DatabaseStore(BaseStore): method _cleanup_old_entries (line 143) | def _cleanup_old_entries(cls): method request_ids (line 156) | def request_ids(cls): method exists (line 164) | def exists(cls, request_id: str) -> bool: method set (line 169) | def set(cls, request_id: str): method clear (line 180) | def clear(cls): method delete (line 185) | def delete(cls, request_id: str): method save_panel (line 190) | def save_panel(cls, request_id: str, panel_id: str, data: Any = None): method panel (line 200) | def panel(cls, request_id: str, panel_id: str) -> Any: method panels (line 212) | def panels(cls, request_id: str) -> Any: function get_store (line 222) | def get_store() -> BaseStore: FILE: debug_toolbar/toolbar.py class DebugToolbar (line 35) | class DebugToolbar: method __init__ (line 40) | def __init__( method panels (line 65) | def panels(self) -> list[Panel]: method enabled_panels (line 72) | def enabled_panels(self) -> list[Panel]: method csp_nonce (line 79) | def csp_nonce(self) -> str | None: method get_panel_by_id (line 85) | def get_panel_by_id(self, panel_id: str) -> Panel: method render_toolbar (line 93) | def render_toolbar(self) -> str: method should_render_panels (line 114) | def should_render_panels(self) -> bool: method init_store (line 123) | def init_store(self): method fetch (line 134) | def fetch( method get_panel_classes (line 146) | def get_panel_classes(cls) -> list[type[Panel]] | None: method get_urls (line 158) | def get_urls(cls) -> list[URLPattern | URLResolver]: method is_toolbar_request (line 174) | def is_toolbar_request(cls, request: HttpRequest) -> bool: method get_observe_request (line 193) | def get_observe_request() -> Callable: function observe_request (line 203) | def observe_request(request: HttpRequest) -> bool: function from_store_get_response (line 210) | def from_store_get_response(request: HttpRequest | None) -> None: class StoredDebugToolbar (line 217) | class StoredDebugToolbar(DebugToolbar): method __init__ (line 218) | def __init__( method from_store (line 233) | def from_store( function debug_toolbar_urls (line 251) | def debug_toolbar_urls(prefix: str = "__debug__") -> list[URLPattern | U... FILE: debug_toolbar/utils.py function _is_excluded_frame (line 25) | def _is_excluded_frame(frame: Any, excluded_modules: Sequence[str] | Non... function _stack_trace_deprecation_warning (line 38) | def _stack_trace_deprecation_warning() -> None: function tidy_stacktrace (line 47) | def tidy_stacktrace(stack: list[stubs.InspectStack]) -> stubs.TidyStackT... function render_stacktrace (line 72) | def render_stacktrace(trace: stubs.TidyStackTrace) -> SafeString: function get_template_info (line 107) | def get_template_info() -> dict[str, Any] | None: function get_template_context (line 135) | def get_template_context( function get_template_source_from_exception_info (line 152) | def get_template_source_from_exception_info( function get_name_from_obj (line 169) | def get_name_from_obj(obj: Any) -> str: function getframeinfo (line 181) | def getframeinfo(frame: Any, context: int = 1) -> inspect.Traceback: function sanitize_and_sort_request_vars (line 220) | def sanitize_and_sort_request_vars( function _get_sorted_keys (line 242) | def _get_sorted_keys(variable): function _process_query_dict (line 250) | def _process_query_dict(query_dict, keys): function _process_dict (line 261) | def _process_dict(dictionary, keys): function get_stack (line 266) | def get_stack(context=1) -> list[stubs.InspectStack]: function _stack_frames (line 285) | def _stack_frames(*, skip=0): class _StackTraceRecorder (line 296) | class _StackTraceRecorder: method __init__ (line 299) | def __init__(self): method get_source_file (line 302) | def get_source_file(self, frame): method get_stack_trace (line 321) | def get_stack_trace( function get_stack_trace (line 358) | def get_stack_trace(*, skip=0): function clear_stack_trace_caches (line 388) | def clear_stack_trace_caches(): function is_processable_html_response (line 396) | def is_processable_html_response(response): function get_csp_nonce (line 406) | def get_csp_nonce(request) -> str | None: FILE: debug_toolbar/views.py function render_panel (line 14) | def render_panel(request: HttpRequest) -> JsonResponse: FILE: docs/conf.py function setup (line 72) | def setup(app): FILE: example/async_/views.py function async_db_view (line 5) | async def async_db_view(request): FILE: example/screenshot.py function parse_args (line 14) | def parse_args(): function create_webdriver_options (line 24) | def create_webdriver_options(browser, headless): function create_webdriver (line 32) | def create_webdriver(browser, headless): function example_server (line 37) | def example_server(): function set_viewport_size (line 44) | def set_viewport_size(selenium, width, height): function submit_form (line 55) | def submit_form(selenium, data): function main (line 64) | def main(): FILE: example/test_views.py class ViewTestCase (line 9) | class ViewTestCase(TestCase): method test_index (line 10) | def test_index(self): FILE: example/views.py function increment (line 10) | def increment(request): function jinja2_view (line 19) | def jinja2_view(request): function async_home (line 23) | async def async_home(request): function async_db (line 27) | async def async_db(request): function async_db_concurrent (line 35) | async def async_db_concurrent(request): function cache_view (line 46) | def cache_view(request): FILE: tests/base.py class ToolbarTestClient (line 22) | class ToolbarTestClient(Client): method request (line 23) | def request(self, **request): class AsyncToolbarTestClient (line 42) | class AsyncToolbarTestClient(AsyncClient): method request (line 43) | async def request(self, **request): class BaseMixin (line 67) | class BaseMixin: method setUp (line 75) | def setUp(self): method tearDown (line 92) | def tearDown(self): method get_response (line 97) | def get_response(self, request): method get_response_async (line 100) | async def get_response_async(self, request): method assertValidHTML (line 103) | def assertValidHTML(self, content): method reload_stats (line 114) | def reload_stats(self): class BaseTestCase (line 119) | class BaseTestCase(BaseMixin, TestCase): class BaseMultiDBTestCase (line 123) | class BaseMultiDBTestCase(BaseMixin, TransactionTestCase): class IntegrationTestCase (line 127) | class IntegrationTestCase(TestCase): method setUp (line 130) | def setUp(self): FILE: tests/commands/test_debugsqlshell.py class DebugSQLShellTestCase (line 17) | class DebugSQLShellTestCase(TestCase): method setUp (line 18) | def setUp(self): method tearDown (line 27) | def tearDown(self): method test_command (line 30) | def test_command(self): FILE: tests/context_processors.py function broken (line 1) | def broken(request): FILE: tests/forms.py class TemplateReprForm (line 5) | class TemplateReprForm(forms.Form): method __repr__ (line 8) | def __repr__(self): FILE: tests/loaders.py class LoaderWithSQL (line 5) | class LoaderWithSQL(Loader): method get_template (line 6) | def get_template(self, *args, **kwargs): FILE: tests/middleware.py class UseCacheAfterToolbar (line 4) | class UseCacheAfterToolbar: method __init__ (line 10) | def __init__(self, get_response): method __call__ (line 13) | def __call__(self, request): FILE: tests/models.py class NonAsciiRepr (line 6) | class NonAsciiRepr: method __repr__ (line 7) | def __repr__(self): class Binary (line 11) | class Binary(models.Model): method __str__ (line 14) | def __str__(self): class PostgresJSON (line 18) | class PostgresJSON(models.Model): method __str__ (line 21) | def __str__(self): class Location (line 28) | class Location(gismodels.Model): method __str__ (line 31) | def __str__(self): FILE: tests/panels/test_alerts.py class AlertsPanelTestCase (line 7) | class AlertsPanelTestCase(BaseTestCase): method test_alert_warning_display (line 10) | def test_alert_warning_display(self): method test_file_form_without_enctype_multipart_form_data (line 21) | def test_file_form_without_enctype_multipart_form_data(self): method test_file_form_no_id_without_enctype_multipart_form_data (line 35) | def test_file_form_no_id_without_enctype_multipart_form_data(self): method test_file_form_with_enctype_multipart_form_data (line 51) | def test_file_form_with_enctype_multipart_form_data(self): method test_file_form_with_enctype_multipart_form_data_in_button (line 59) | def test_file_form_with_enctype_multipart_form_data_in_button(self): method test_referenced_file_input_without_enctype_multipart_form_data (line 68) | def test_referenced_file_input_without_enctype_multipart_form_data(self): method test_referenced_file_input_with_enctype_multipart_form_data (line 80) | def test_referenced_file_input_with_enctype_multipart_form_data(self): method test_integration_file_form_without_enctype_multipart_form_data (line 88) | def test_integration_file_form_without_enctype_multipart_form_data(self): method test_streaming_response (line 103) | def test_streaming_response(self): FILE: tests/panels/test_async_panel_compatibility.py class MockAsyncPanel (line 8) | class MockAsyncPanel(Panel): class MockSyncPanel (line 12) | class MockSyncPanel(Panel): class PanelAsyncCompatibilityTestCase (line 16) | class PanelAsyncCompatibilityTestCase(TestCase): method setUp (line 17) | def setUp(self): method test_panels_with_asgi (line 21) | def test_panels_with_asgi(self): method test_panels_with_wsgi (line 31) | def test_panels_with_wsgi(self): FILE: tests/panels/test_cache.py class CachePanelTestCase (line 8) | class CachePanelTestCase(BaseTestCase): method test_recording (line 11) | def test_recording(self): method test_recording_caches (line 23) | def test_recording_caches(self): method test_hits_and_misses (line 31) | def test_hits_and_misses(self): method test_get_or_set_value (line 48) | def test_get_or_set_value(self): method test_get_or_set_does_not_override_existing_value (line 82) | def test_get_or_set_does_not_override_existing_value(self): method test_insert_content (line 117) | def test_insert_content(self): method test_generate_server_timing (line 135) | def test_generate_server_timing(self): method test_backend_alias_is_recorded (line 158) | def test_backend_alias_is_recorded(self): FILE: tests/panels/test_custom.py class CustomPanel (line 8) | class CustomPanel(Panel): method title (line 9) | def title(self): class CustomPanelTestCase (line 16) | class CustomPanelTestCase(IntegrationTestCase): method test_escapes_panel_title (line 17) | def test_escapes_panel_title(self): FILE: tests/panels/test_history.py class HistoryPanelTestCase (line 17) | class HistoryPanelTestCase(BaseTestCase): method test_disabled (line 20) | def test_disabled(self): method test_post (line 26) | def test_post(self): method test_post_json (line 33) | def test_post_json(self): method test_urls (line 51) | def test_urls(self): class HistoryViewsTestCase (line 71) | class HistoryViewsTestCase(IntegrationTestCase): method test_history_panel_integration_content (line 88) | def test_history_panel_integration_content(self): method test_history_sidebar_invalid (line 104) | def test_history_sidebar_invalid(self): method test_history_headers (line 108) | def test_history_headers(self): method test_history_headers_unobserved (line 115) | def test_history_headers_unobserved(self): method test_history_sidebar (line 127) | def test_history_sidebar(self): method test_history_sidebar_includes_history (line 139) | def test_history_sidebar_includes_history(self): method test_history_sidebar_expired_request_id (line 157) | def test_history_sidebar_expired_request_id(self): method test_history_refresh (line 188) | def test_history_refresh(self): FILE: tests/panels/test_profiling.py class ProfilingPanelTestCase (line 18) | class ProfilingPanelTestCase(BaseTestCase): method test_regular_view (line 21) | def test_regular_view(self): method test_insert_content (line 28) | def test_insert_content(self): method test_cum_time_threshold (line 48) | def test_cum_time_threshold(self): method test_listcomp_escaped (line 65) | def test_listcomp_escaped(self): method test_generate_stats_no_profiler (line 73) | def test_generate_stats_no_profiler(self): method test_generate_stats_no_root_func (line 80) | def test_generate_stats_no_root_func(self): class ProfilingPanelIntegrationTestCase (line 95) | class ProfilingPanelIntegrationTestCase(IntegrationTestCase): method test_view_executed_once (line 96) | def test_view_executed_once(self): FILE: tests/panels/test_redirects.py class RedirectsPanelTestCase (line 12) | class RedirectsPanelTestCase(BaseTestCase): method test_regular_response (line 15) | def test_regular_response(self): method test_not_a_redirect (line 21) | def test_not_a_redirect(self): method test_redirect (line 27) | def test_redirect(self): method test_redirect_with_broken_context_processor (line 36) | def test_redirect_with_broken_context_processor(self): method test_unknown_status_code (line 51) | def test_unknown_status_code(self): method test_unknown_status_code_with_reason (line 58) | def test_unknown_status_code_with_reason(self): method test_async_compatibility (line 65) | async def test_async_compatibility(self): method test_original_response_preserved (line 79) | def test_original_response_preserved(self): method test_deprecation_warning (line 92) | def test_deprecation_warning(self): FILE: tests/panels/test_request.py class RequestPanelTestCase (line 11) | class RequestPanelTestCase(BaseTestCase): method test_non_ascii_session (line 14) | def test_non_ascii_session(self): method test_object_with_non_ascii_repr_in_request_params (line 20) | def test_object_with_non_ascii_repr_in_request_params(self): method test_insert_content (line 26) | def test_insert_content(self): method test_query_dict_for_request_in_method_get (line 41) | def test_query_dict_for_request_in_method_get(self): method test_dict_for_request_in_method_get (line 54) | def test_dict_for_request_in_method_get(self): method test_query_dict_for_request_in_method_post (line 67) | def test_query_dict_for_request_in_method_post(self): method test_dict_for_request_in_method_post (line 80) | def test_dict_for_request_in_method_post(self): method test_list_for_request_in_method_post (line 93) | def test_list_for_request_in_method_post(self): method test_namespaced_url (line 106) | def test_namespaced_url(self): method test_session_list_sorted_or_not (line 113) | def test_session_list_sorted_or_not(self): method test_sensitive_post_data_sanitized (line 142) | def test_sensitive_post_data_sanitized(self): method test_sensitive_get_data_sanitized (line 156) | def test_sensitive_get_data_sanitized(self): method test_sensitive_cookie_data_sanitized (line 170) | def test_sensitive_cookie_data_sanitized(self): method test_sensitive_session_data_sanitized (line 184) | def test_sensitive_session_data_sanitized(self): method test_querydict_sanitized (line 198) | def test_querydict_sanitized(self): FILE: tests/panels/test_settings.py class SettingsPanelTestCase (line 10) | class SettingsPanelTestCase(BaseTestCase): method test_panel_recording (line 13) | def test_panel_recording(self): class SettingsIntegrationTestCase (line 26) | class SettingsIntegrationTestCase(IntegrationTestCase): method test_panel_title (line 27) | def test_panel_title(self): FILE: tests/panels/test_sql.py function sql_call (line 32) | def sql_call(*, use_iterator=False): function sql_call_toolbar_model (line 39) | def sql_call_toolbar_model(): function async_sql_call_toolbar_model (line 45) | async def async_sql_call_toolbar_model(): function async_sql_call (line 51) | async def async_sql_call(*, use_iterator=False): function concurrent_async_sql_call (line 58) | async def concurrent_async_sql_call(*, use_iterator=False): function patch_tracking_ddt_models (line 65) | def patch_tracking_ddt_models(): class SQLPanelTestCase (line 80) | class SQLPanelTestCase(BaseTestCase): method test_disabled (line 83) | def test_disabled(self): method test_recording (line 89) | def test_recording(self): method test_assert_num_queries_works (line 105) | def test_assert_num_queries_works(self): method test_recording_async (line 116) | async def test_recording_async(self): method test_recording_concurrent_async (line 132) | async def test_recording_concurrent_async(self): method test_toolbar_model_query_is_tracked (line 154) | def test_toolbar_model_query_is_tracked(self): method test_toolbar_model_query_is_tracked_async (line 175) | async def test_toolbar_model_query_is_tracked_async(self): method test_toolbar_model_query_is_not_tracked (line 196) | def test_toolbar_model_query_is_not_tracked(self): method test_toolbar_model_query_is_not_tracked_async (line 214) | async def test_toolbar_model_query_is_not_tracked_async(self): method test_recording_chunked_cursor (line 229) | def test_recording_chunked_cursor(self): method test_cursor_wrapper_singleton (line 241) | def test_cursor_wrapper_singleton(self, mock_patch_cursor_wrapper): method test_chunked_cursor_wrapper_singleton (line 257) | def test_chunked_cursor_wrapper_singleton(self, mock_patch_cursor_wrap... method test_cursor_wrapper_async (line 274) | async def test_cursor_wrapper_async(self, mock_patch_cursor_wrapper): method test_cursor_wrapper_asyncio_ctx (line 290) | async def test_cursor_wrapper_asyncio_ctx(self, mock_patch_cursor_wrap... method test_generate_server_timing (line 322) | def test_generate_server_timing(self): method test_non_ascii_query (line 341) | def test_non_ascii_query(self): method test_bytes_query (line 365) | def test_bytes_query(self): method test_param_conversion (line 373) | def test_param_conversion(self): method test_json_param_conversion (line 425) | def test_json_param_conversion(self): method test_tuple_param_conversion (line 444) | def test_tuple_param_conversion(self): method test_binary_param_force_text (line 464) | def test_binary_param_force_text(self): method test_raw_query_param_conversion (line 484) | def test_raw_query_param_conversion(self): method test_insert_content (line 545) | def test_insert_content(self): method test_insert_locals (line 559) | def test_insert_locals(self): method test_not_insert_locals (line 574) | def test_not_insert_locals(self): method test_erroneous_query (line 586) | def test_erroneous_query(self): method test_execute_with_psycopg_composed_sql (line 598) | def test_execute_with_psycopg_composed_sql(self): method test_disable_stacktraces (line 623) | def test_disable_stacktraces(self): method test_regression_infinite_recursion (line 649) | def test_regression_infinite_recursion(self): method test_prettify_sql (line 670) | def test_prettify_sql(self): method test_simplification (line 715) | def test_simplification(self): method test_top_level_simplification (line 732) | def test_top_level_simplification(self): method test_flat_template_information (line 775) | def test_flat_template_information(self): method test_nested_template_information (line 797) | def test_nested_template_information(self): method test_similar_and_duplicate_grouping (line 816) | def test_similar_and_duplicate_grouping(self): method test_explain_with_union (line 865) | def test_explain_with_union(self): class SQLPanelMultiDBTestCase (line 873) | class SQLPanelMultiDBTestCase(BaseMultiDBTestCase): method test_aliases (line 876) | def test_aliases(self): method test_transaction_status (line 893) | def test_transaction_status(self): FILE: tests/panels/test_staticfiles.py class StaticFilesPanelTestCase (line 13) | class StaticFilesPanelTestCase(BaseTestCase): method test_default_case (line 16) | def test_default_case(self): method test_store_staticfiles_with_async_context (line 36) | async def test_store_staticfiles_with_async_context(self): method test_insert_content (line 47) | def test_insert_content(self): method test_path (line 66) | def test_path(self): method test_storage_state_preservation (line 92) | def test_storage_state_preservation(self): method test_context_variable_lifecycle (line 103) | def test_context_variable_lifecycle(self): method test_multiple_initialization (line 121) | def test_multiple_initialization(self): FILE: tests/panels/test_template.py class TemplatesPanelTestCase (line 17) | class TemplatesPanelTestCase(BaseTestCase): method setUp (line 20) | def setUp(self): method tearDown (line 25) | def tearDown(self): method test_queryset_hook (line 29) | def test_queryset_hook(self): method test_template_repr (line 53) | def test_template_repr(self): method test_object_with_non_ascii_repr_in_context (line 68) | def test_object_with_non_ascii_repr_in_context(self): method test_insert_content (line 76) | def test_insert_content(self): method test_custom_context_processor (line 93) | def test_custom_context_processor(self): method test_disabled (line 103) | def test_disabled(self): method test_empty_context (line 109) | def test_empty_context(self): method test_lazyobject (line 122) | def test_lazyobject(self): method test_lazyobject_eval (line 130) | def test_lazyobject_eval(self): method test_template_source (line 142) | def test_template_source(self): class JinjaTemplateTestCase (line 160) | class JinjaTemplateTestCase(IntegrationTestCase): method test_django_jinja2 (line 161) | def test_django_jinja2(self): method test_django_jinja2_parent_template_instrumented (line 170) | def test_django_jinja2_parent_template_instrumented(self): function context_processor (line 181) | def context_processor(request): FILE: tests/panels/test_versions.py class VersionsPanelTestCase (line 12) | class VersionsPanelTestCase(BaseTestCase): method test_app_version_from_get_version_fn (line 15) | def test_app_version_from_get_version_fn(self): method test_incompatible_app_version_fn (line 22) | def test_incompatible_app_version_fn(self): method test_app_version_from_VERSION (line 32) | def test_app_version_from_VERSION(self): method test_app_version_from_underscore_version (line 38) | def test_app_version_from_underscore_version(self): FILE: tests/sync.py class DatabaseSyncToAsync (line 9) | class DatabaseSyncToAsync(SyncToAsync): method thread_handler (line 14) | def thread_handler(self, loop, *args, **kwargs): FILE: tests/test_apps.py class AppsTestCase (line 9) | class AppsTestCase(SimpleTestCase): method test_migrations_are_visible (line 16) | def test_migrations_are_visible(self, mocked_migration_modules): method test_migrations_are_hidden (line 24) | def test_migrations_are_hidden(self, mocked_migration_modules): method test_models_are_visible (line 35) | def test_models_are_visible(self): method test_models_are_hidden (line 43) | def test_models_are_hidden(self): FILE: tests/test_checks.py class ChecksTestCase (line 10) | class ChecksTestCase(SimpleTestCase): method test_check_good_configuration (line 20) | def test_check_good_configuration(self): method test_check_missing_middleware_error (line 31) | def test_check_missing_middleware_error(self): method test_check_gzip_middleware_error (line 55) | def test_check_gzip_middleware_error(self): method test_check_middleware_classes_error (line 81) | def test_check_middleware_classes_error(self): method test_panels_is_empty (line 93) | def test_panels_is_empty(self): method test_check_w006_invalid (line 126) | def test_check_w006_invalid(self): method test_check_w006_valid (line 180) | def test_check_w006_valid(self): method test_check_w006_valid_nested_loaders (line 209) | def test_check_w006_valid_nested_loaders(self): method test_check_w007_valid (line 213) | def test_check_w007_valid(self, mocked_guess_type): method test_check_w007_invalid (line 220) | def test_check_w007_invalid(self, mocked_guess_type): method test_debug_toolbar_installed_when_running_tests (line 243) | def test_debug_toolbar_installed_when_running_tests(self, reverse): method test_observe_request_callback_specified (line 313) | def test_observe_request_callback_specified(self): FILE: tests/test_csp_rendering.py function get_namespaces (line 42) | def get_namespaces(element): class CspRenderingTestCase (line 53) | class CspRenderingTestCase(IntegrationTestCase): method setUp (line 56) | def setUp(self): method _fail_if_missing (line 60) | def _fail_if_missing(self, root, path, namespaces, nonce): method _fail_if_found (line 69) | def _fail_if_found(self, root, path, namespaces): method _fail_on_invalid_html (line 78) | def _fail_on_invalid_html(self, content, parser): method test_exists (line 89) | def test_exists(self): method test_does_not_exist_nonce_wasnt_used (line 110) | def test_does_not_exist_nonce_wasnt_used(self): method test_redirects_exists (line 135) | def test_redirects_exists(self): method test_panel_content_nonce_exists (line 155) | def test_panel_content_nonce_exists(self): method test_missing (line 183) | def test_missing(self): FILE: tests/test_decorators.py function stub_view (line 11) | def stub_view(request): function stub_require_toolbar_view (line 16) | def stub_require_toolbar_view(request): function stub_require_toolbar_async_view (line 21) | async def stub_require_toolbar_async_view(request): class TestRequireToolbar (line 25) | class TestRequireToolbar(TestCase): method setUp (line 30) | def setUp(self): method test_require_toolbar_debug_true (line 35) | def test_require_toolbar_debug_true(self): method test_require_toolbar_debug_false (line 39) | def test_require_toolbar_debug_false(self): method test_require_toolbar_async_debug_true (line 46) | async def test_require_toolbar_async_debug_true(self): method test_require_toolbar_async_debug_false (line 50) | async def test_require_toolbar_async_debug_false(self): class RenderWithToolbarLanguageTestCase (line 56) | class RenderWithToolbarLanguageTestCase(TestCase): method test_uses_toolbar_language (line 59) | def test_uses_toolbar_language(self, mock_language_override): method test_defaults_to_django_language_code (line 64) | def test_defaults_to_django_language_code(self, mock_language_override): FILE: tests/test_forms.py class FooForm (line 14) | class FooForm(forms.Form): class TestSignedDataForm (line 21) | class TestSignedDataForm(TestCase): method test_signed_data (line 22) | def test_signed_data(self): method test_verified_data (line 29) | def test_verified_data(self): method test_initial_set_signed (line 43) | def test_initial_set_signed(self): method test_prevents_tampering (line 47) | def test_prevents_tampering(self): FILE: tests/test_integration.py function toolbar_request_id (line 50) | def toolbar_request_id(): class BuggyPanel (line 59) | class BuggyPanel(Panel): method title (line 60) | def title(self): method content (line 64) | def content(self): class DebugToolbarTestCase (line 69) | class DebugToolbarTestCase(BaseTestCase): method test_show_toolbar (line 70) | def test_show_toolbar(self): method test_show_toolbar_DEBUG (line 73) | def test_show_toolbar_DEBUG(self): method test_show_toolbar_INTERNAL_IPS (line 77) | def test_show_toolbar_INTERNAL_IPS(self): method test_show_toolbar_docker (line 82) | def test_show_toolbar_docker(self, mocked_gethostbyname): method test_not_iterating_over_INTERNAL_IPS (line 90) | def test_not_iterating_over_INTERNAL_IPS(self): method test_should_render_panels_RENDER_PANELS (line 112) | def test_should_render_panels_RENDER_PANELS(self): method _resolve_stats (line 124) | def _resolve_stats(self, path): method test_url_resolving_positional (line 132) | def test_url_resolving_positional(self): method test_url_resolving_named (line 139) | def test_url_resolving_named(self): method test_url_resolving_mixed (line 144) | def test_url_resolving_mixed(self): method test_url_resolving_bad (line 149) | def test_url_resolving_bad(self): method test_middleware_response_insertion (line 156) | def test_middleware_response_insertion(self): method test_middleware_no_injection_when_encoded (line 164) | def test_middleware_no_injection_when_encoded(self): method test_cache_page (line 173) | def test_cache_page(self): method test_include_package_urls (line 187) | def test_include_package_urls(self): method test_low_level_cache_view (line 201) | def test_low_level_cache_view(self): method test_cache_disable_instrumentation (line 212) | def test_cache_disable_instrumentation(self): method test_is_toolbar_request (line 226) | def test_is_toolbar_request(self): method test_is_toolbar_request_without_djdt_urls (line 237) | def test_is_toolbar_request_without_djdt_urls(self): method test_is_toolbar_request_override_request_urlconf (line 246) | def test_is_toolbar_request_override_request_urlconf(self): method test_is_toolbar_request_with_script_prefix (line 255) | def test_is_toolbar_request_with_script_prefix(self): method test_data_gone (line 269) | def test_data_gone(self): method test_sql_page (line 275) | def test_sql_page(self): method test_async_sql_page (line 281) | def test_async_sql_page(self): method test_concurrent_async_sql_page (line 287) | def test_concurrent_async_sql_page(self): class DebugToolbarIntegrationTestCase (line 295) | class DebugToolbarIntegrationTestCase(IntegrationTestCase): method test_middleware (line 296) | def test_middleware(self): method test_non_utf8_charset (line 302) | def test_non_utf8_charset(self): method test_html5_validation (line 311) | def test_html5_validation(self): method test_render_panel_checks_show_toolbar (line 325) | def test_render_panel_checks_show_toolbar(self): method test_middleware_render_toolbar_json (line 347) | def test_middleware_render_toolbar_json(self): method test_template_source_checks_show_toolbar (line 365) | def test_template_source_checks_show_toolbar(self): method test_template_source_errors (line 387) | def test_template_source_errors(self): method test_sql_select_checks_show_toolbar (line 407) | def test_sql_select_checks_show_toolbar(self): method test_sql_explain_checks_show_toolbar (line 439) | def test_sql_explain_checks_show_toolbar(self): method test_sql_explain_postgres_union_query (line 474) | def test_sql_explain_postgres_union_query(self): method test_sql_explain_postgres_json_field (line 501) | def test_sql_explain_postgres_json_field(self): method test_sql_profile_checks_show_toolbar (line 532) | def test_sql_profile_checks_show_toolbar(self): method test_render_panels_in_request (line 565) | def test_render_panels_in_request(self): method test_load_panels (line 585) | def test_load_panels(self): method test_view_returns_template_response (line 604) | def test_view_returns_template_response(self): method test_intercept_redirects (line 609) | def test_intercept_redirects(self): method test_server_timing_headers (line 615) | def test_server_timing_headers(self): method test_timer_panel (line 630) | def test_timer_panel(self): method test_auth_login_view_without_redirect (line 638) | def test_auth_login_view_without_redirect(self): class DebugToolbarLiveTestCase (line 660) | class DebugToolbarLiveTestCase(StaticLiveServerTestCase): method setUpClass (line 662) | def setUpClass(cls): method tearDownClass (line 673) | def tearDownClass(cls): method get (line 677) | def get(self, url): method wait (line 681) | def wait(self): method test_basic (line 684) | def test_basic(self): method test_basic_jinja (line 707) | def test_basic_jinja(self): method test_rerender_on_history_switch (line 724) | def test_rerender_on_history_switch(self): method test_expired_store (line 748) | def test_expired_store(self): method test_django_cached_template_loader (line 779) | def test_django_cached_template_loader(self): method test_sql_action_and_go_back (line 799) | def test_sql_action_and_go_back(self): method test_displays_server_error (line 825) | def test_displays_server_error(self): method test_toolbar_language_will_render_to_default_language_when_not_set (line 832) | def test_toolbar_language_will_render_to_default_language_when_not_set... method test_toolbar_language_will_render_to_locale_when_set (line 850) | def test_toolbar_language_will_render_to_locale_when_set(self): method test_toolbar_language_will_render_to_locale_when_set_both (line 869) | def test_toolbar_language_will_render_to_locale_when_set_both(self): method test_ajax_dont_refresh (line 886) | def test_ajax_dont_refresh(self): method test_ajax_refresh (line 895) | def test_ajax_refresh(self): method test_theme_toggle (line 915) | def test_theme_toggle(self): method test_async_sql_action (line 952) | def test_async_sql_action(self): method test_concurrent_async_sql_action (line 965) | def test_concurrent_async_sql_action(self): FILE: tests/test_integration_async.py function toolbar_request_id (line 33) | def toolbar_request_id(): class BuggyPanel (line 42) | class BuggyPanel(Panel): method title (line 43) | def title(self): method content (line 47) | def content(self): class DebugToolbarTestCase (line 52) | class DebugToolbarTestCase(BaseTestCase): method test_show_toolbar (line 55) | def test_show_toolbar(self): method test_show_toolbar_INTERNAL_IPS (line 62) | async def test_show_toolbar_INTERNAL_IPS(self): method test_show_toolbar_docker (line 67) | async def test_show_toolbar_docker(self, mocked_gethostbyname): method test_not_iterating_over_INTERNAL_IPS (line 75) | async def test_not_iterating_over_INTERNAL_IPS(self): method test_middleware_response_insertion (line 98) | async def test_middleware_response_insertion(self): method test_middleware_no_injection_when_encoded (line 106) | async def test_middleware_no_injection_when_encoded(self): method test_cache_page (line 115) | async def test_cache_page(self): method test_include_package_urls (line 125) | async def test_include_package_urls(self): method test_low_level_cache_view (line 135) | async def test_low_level_cache_view(self): method test_cache_disable_instrumentation (line 142) | async def test_cache_disable_instrumentation(self): method test_is_toolbar_request (line 154) | async def test_is_toolbar_request(self): method test_is_toolbar_request_without_djdt_urls (line 165) | async def test_is_toolbar_request_without_djdt_urls(self): method test_is_toolbar_request_override_request_urlconf (line 174) | async def test_is_toolbar_request_override_request_urlconf(self): method test_is_toolbar_request_with_script_prefix (line 183) | async def test_is_toolbar_request_with_script_prefix(self): method test_data_gone (line 197) | async def test_data_gone(self): method test_sql_page (line 203) | async def test_sql_page(self): method test_async_sql_page (line 209) | async def test_async_sql_page(self): class DebugToolbarIntegrationTestCase (line 234) | class DebugToolbarIntegrationTestCase(IntegrationTestCase): method test_middleware_in_async_mode (line 235) | async def test_middleware_in_async_mode(self): method test_non_utf8_charset (line 241) | async def test_non_utf8_charset(self): method test_html5_validation (line 251) | async def test_html5_validation(self): method test_render_panel_checks_show_toolbar (line 265) | async def test_render_panel_checks_show_toolbar(self): method test_middleware_render_toolbar_json (line 280) | async def test_middleware_render_toolbar_json(self): method test_template_source_checks_show_toolbar (line 300) | async def test_template_source_checks_show_toolbar(self): method test_template_source_errors (line 314) | async def test_template_source_errors(self): method test_sql_select_checks_show_toolbar (line 334) | async def test_sql_select_checks_show_toolbar(self): method test_sql_explain_checks_show_toolbar (line 358) | async def test_sql_explain_checks_show_toolbar(self): method test_sql_explain_postgres_union_query (line 385) | async def test_sql_explain_postgres_union_query(self): method test_sql_explain_postgres_json_field (line 412) | async def test_sql_explain_postgres_json_field(self): method test_sql_profile_checks_show_toolbar (line 435) | async def test_sql_profile_checks_show_toolbar(self): method test_render_panels_in_request (line 460) | async def test_render_panels_in_request(self): method test_load_panels (line 480) | async def test_load_panels(self): method test_view_returns_template_response (line 499) | async def test_view_returns_template_response(self): method test_intercept_redirects (line 504) | async def test_intercept_redirects(self): method test_server_timing_headers (line 510) | async def test_server_timing_headers(self): method test_timer_panel (line 525) | async def test_timer_panel(self): method test_auth_login_view_without_redirect (line 533) | async def test_auth_login_view_without_redirect(self): FILE: tests/test_login_not_required.py class LoginNotRequiredTestCase (line 25) | class LoginNotRequiredTestCase(SimpleTestCase): method test_panels (line 26) | def test_panels(self): method test_render_panel (line 39) | def test_render_panel(self): FILE: tests/test_middleware.py function show_toolbar_if_staff (line 16) | def show_toolbar_if_staff(request): function ashow_toolbar_if_staff (line 21) | async def ashow_toolbar_if_staff(request): class MiddlewareSyncAsyncCompatibilityTestCase (line 27) | class MiddlewareSyncAsyncCompatibilityTestCase(TestCase): method setUp (line 28) | def setUp(self): method test_sync_mode (line 33) | def test_sync_mode(self): method test_async_mode (line 50) | async def test_async_mode(self): method test_async_show_toolbar_callback_sync_middleware (line 73) | def test_async_show_toolbar_callback_sync_middleware(self, mocked_show): method test_sync_show_toolbar_callback_async_middleware (line 89) | async def test_sync_show_toolbar_callback_async_middleware(self, mocke... FILE: tests/test_models.py class HistoryEntryTestCase (line 8) | class HistoryEntryTestCase(TestCase): method test_str_method (line 9) | def test_str_method(self): method test_data_field_default (line 14) | def test_data_field_default(self): method test_model_persistence (line 19) | def test_model_persistence(self): method test_default_ordering (line 30) | def test_default_ordering(self): FILE: tests/test_sanitize.py class ForceStrTestCase (line 6) | class ForceStrTestCase(unittest.TestCase): method test_success_convert (line 7) | def test_success_convert(self): method test_failed_convert (line 12) | def test_failed_convert(self): FILE: tests/test_settings.py class SettingsTestCase (line 8) | class SettingsTestCase(TestCase): method test_is_running_tests (line 11) | def test_is_running_tests(self, mock_os, mock_sys): FILE: tests/test_store.py class SerializationTestCase (line 10) | class SerializationTestCase(TestCase): method test_serialize (line 11) | def test_serialize(self): method test_serialize_logs_on_failure (line 17) | def test_serialize_logs_on_failure(self): method test_deserialize (line 23) | def test_deserialize(self): class BaseStoreTestCase (line 30) | class BaseStoreTestCase(TestCase): method test_methods_are_not_implemented (line 31) | def test_methods_are_not_implemented(self): class MemoryStoreTestCase (line 53) | class MemoryStoreTestCase(TestCase): method setUpTestData (line 55) | def setUpTestData(cls) -> None: method tearDown (line 58) | def tearDown(self) -> None: method test_ids (line 61) | def test_ids(self): method test_exists (line 66) | def test_exists(self): method test_set (line 71) | def test_set(self): method test_set_max_size (line 75) | def test_set_max_size(self): method test_clear (line 83) | def test_clear(self): method test_delete (line 89) | def test_delete(self): method test_save_panel (line 97) | def test_save_panel(self): method test_panel (line 102) | def test_panel(self): method test_serialize_safestring (line 107) | def test_serialize_safestring(self): class StubStore (line 120) | class StubStore(store.BaseStore): class GetStoreTestCase (line 124) | class GetStoreTestCase(TestCase): method test_get_store (line 125) | def test_get_store(self): method test_get_store_with_setting (line 131) | def test_get_store_with_setting(self): class DatabaseStoreTestCase (line 138) | class DatabaseStoreTestCase(TestCase): method setUpTestData (line 140) | def setUpTestData(cls) -> None: method tearDown (line 143) | def tearDown(self) -> None: method test_ids (line 146) | def test_ids(self): method test_exists (line 155) | def test_exists(self): method test_set (line 162) | def test_set(self): method test_set_max_size (line 167) | def test_set_max_size(self): method test_clear (line 189) | def test_clear(self): method test_delete (line 196) | def test_delete(self): method test_save_panel (line 205) | def test_save_panel(self): method test_update_panel (line 211) | def test_update_panel(self): method test_panels_nonexistent_request (line 220) | def test_panels_nonexistent_request(self): method test_panel (line 225) | def test_panel(self): method test_panels (line 232) | def test_panels(self): method test_cleanup_old_entries (line 241) | def test_cleanup_old_entries(self): FILE: tests/test_toolbar.py class DebugToolbarUrlsTestCase (line 7) | class DebugToolbarUrlsTestCase(BaseTestCase): method test_empty_prefix_errors (line 8) | def test_empty_prefix_errors(self): method test_empty_when_debug_is_false (line 12) | def test_empty_when_debug_is_false(self): method test_has_path (line 15) | def test_has_path(self): FILE: tests/test_utils.py class GetNameFromObjTestCase (line 17) | class GetNameFromObjTestCase(unittest.TestCase): method test_func (line 18) | def test_func(self): method test_lambda (line 27) | def test_lambda(self): method test_class (line 33) | def test_class(self): class RenderStacktraceTestCase (line 43) | class RenderStacktraceTestCase(unittest.TestCase): method test_importlib_path_issue_1612 (line 44) | def test_importlib_path_issue_1612(self): class StackTraceTestCase (line 69) | class StackTraceTestCase(unittest.TestCase): method test_get_stack_trace_skip (line 71) | def test_get_stack_trace_skip(self): method test_deprecated_functions (line 84) | def test_deprecated_functions(self): method test_locals (line 93) | def test_locals(self): class SanitizeAndSortRequestVarsTestCase (line 116) | class SanitizeAndSortRequestVarsTestCase(unittest.TestCase): method test_dict_sanitization (line 119) | def test_dict_sanitization(self): method test_querydict_sanitization (line 135) | def test_querydict_sanitization(self): method test_non_sortable_dict_keys (line 147) | def test_non_sortable_dict_keys(self): method test_querydict_multiple_values (line 161) | def test_querydict_multiple_values(self): method test_non_dict_input (line 169) | def test_non_dict_input(self): FILE: tests/views.py function execute_sql (line 15) | def execute_sql(request): function execute_json_sql (line 20) | def execute_json_sql(request): function async_execute_json_sql (line 25) | async def async_execute_json_sql(request): function execute_union_sql (line 33) | def execute_union_sql(request): function async_execute_union_sql (line 38) | async def async_execute_union_sql(request): function async_execute_sql (line 47) | async def async_execute_sql(request): function async_execute_sql_concurrently (line 66) | async def async_execute_sql_concurrently(request): function regular_view (line 71) | def regular_view(request, title): function csp_view (line 75) | def csp_view(request): function template_response_view (line 81) | def template_response_view(request, title): function new_user (line 85) | def new_user(request, username="joe"): function resolving_view (line 90) | def resolving_view(request, arg1, arg2): function cached_view (line 96) | def cached_view(request): function cached_low_level_view (line 100) | def cached_low_level_view(request): function json_view (line 109) | def json_view(request): function regular_jinjia_view (line 113) | def regular_jinjia_view(request, title): function listcomp_view (line 117) | def listcomp_view(request): function redirect_view (line 122) | def redirect_view(request): function ajax_view (line 126) | def ajax_view(request):