This commit is contained in:
Matthias 2022-05-15 00:46:56 +02:00
parent 40fa86152e
commit 2ae5fcf6a8
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

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