Skip to content

Commit

Permalink
Add a test for the 'data is gone' case
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Aug 19, 2022
1 parent eb7c4cd commit e566305
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e566305

Please sign in to comment.