This commit is contained in:
Matthias 2022-05-13 01:29:32 +02:00
parent 80a2dad34e
commit 53712c2d6c
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@
from django.conf import settings
from django.contrib.auth.middleware import PersistentRemoteUserMiddleware
from django.http import HttpResponse
from django.shortcuts import HttpResponseRedirect
from django.shortcuts import redirect
from django.urls import reverse_lazy, Resolver404
from django.urls import include, re_path

View File

@ -60,7 +60,7 @@ class MiddlewareTests(TestCase):
self.check_path(reverse('settings.js'), 401)
# request with token
self.check_path(reverse('settings.js'), HTTP_Authorization= f'Token {token}')
self.check_path(reverse('settings.js'), HTTP_Authorization=f'Token {token}')
# should still fail without token
self.check_path(reverse('settings.js'), 401)