1
0
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:
YashRaj1506 2024-12-07 17:35:37 +05:30
parent ac4eecb8eb
commit d9a1ca1526
2 changed files with 5 additions and 2 deletions

View File

@ -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/",

View File

@ -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"),
]