Skip to content

Commit e566305

Browse files
committed
Add a test for the 'data is gone' case
1 parent eb7c4cd commit e566305

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_integration.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ def test_is_toolbar_request_override_request_urlconf(self):
174174
self.request.path = "/__debug__/render_panel/"
175175
self.assertTrue(self.toolbar.is_toolbar_request(self.request))
176176

177+
def test_data_gone(self):
178+
response = self.client.get(
179+
"/__debug__/render_panel/?store_id=GONE&panel_id=RequestPanel"
180+
)
181+
self.assertIn("Please reload the page and retry.", response.json()["content"])
182+
177183

178184
@override_settings(DEBUG=True)
179185
class DebugToolbarIntegrationTestCase(IntegrationTestCase):

0 commit comments

Comments
 (0)