mirror of
https://github.com/django/django.git
synced 2025-01-05 07:55:47 +00:00
Fixed errors given by flake8 and black on CI/CD - #35414
This commit is contained in:
parent
ac4eecb8eb
commit
d9a1ca1526
@ -1254,7 +1254,7 @@ class AsyncClientTest(TestCase):
|
||||
async def async_header_defaults(
|
||||
self,
|
||||
) -> None:
|
||||
async_client = AsyncClient(HTTP_AUTHORIZATION=f"Bearer I_AM_JWT_TOKEN")
|
||||
async_client = AsyncClient(HTTP_AUTHORIZATION="Bearer I_AM_JWT_TOKEN")
|
||||
|
||||
response = await async_client.get(
|
||||
"/async_default_headers/",
|
||||
|
@ -82,5 +82,8 @@ urlpatterns = [
|
||||
path("accounts/logout/", auth_views.LogoutView.as_view()),
|
||||
# Async views.
|
||||
path("async_get_view/", views.async_get_view, name="async_get_view"),
|
||||
path("async_default_headers", views.async_default_headers, name="async_default_headers")
|
||||
path(
|
||||
"async_default_headers",
|
||||
views.async_default_headers,
|
||||
name="async_default_headers"),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user