From e566305e3309aa93bc0c4c55099940e3261aa1c7 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Fri, 19 Aug 2022 09:41:01 +0200 Subject: [PATCH] Add a test for the 'data is gone' case --- tests/test_integration.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_integration.py b/tests/test_integration.py index e9962b32b..982a2824c 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -174,6 +174,12 @@ def test_is_toolbar_request_override_request_urlconf(self): self.request.path = "/__debug__/render_panel/" self.assertTrue(self.toolbar.is_toolbar_request(self.request)) + def test_data_gone(self): + response = self.client.get( + "/__debug__/render_panel/?store_id=GONE&panel_id=RequestPanel" + ) + self.assertIn("Please reload the page and retry.", response.json()["content"]) + @override_settings(DEBUG=True) class DebugToolbarIntegrationTestCase(IntegrationTestCase):