Format test_debug.py to pass Black check

This commit is contained in:
IsJn-227 2025-06-19 11:29:20 +05:30
parent 07d5bdf3a8
commit 0159643c49

View file

@ -257,13 +257,9 @@ class DebugViewTests(SimpleTestCase):
with self.assertLogs("django.request", "ERROR"):
response = self.client.get("/raises500/", headers={"accept": "text/plain"})
self.assertContains(
response,
"Raised during: view_tests.views.raises500",
status_code=500
)
self.assertEqual(
response["Content-Type"], "text/plain; charset=utf-8"
response, "Raised during: view_tests.views.raises500", status_code=500
)
self.assertEqual(response["Content-Type"], "text/plain; charset=utf-8")
def test_technical_500_content_type_negotiation(self):
with self.assertLogs("django.request", "ERROR"):