mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Format test_debug.py to pass Black check
This commit is contained in:
parent
07d5bdf3a8
commit
0159643c49
1 changed files with 2 additions and 6 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue