revert de-activation

This commit is contained in:
Matthias Mair 2024-10-28 23:25:52 +01:00
parent e553227ea0
commit 536850b046
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
1 changed files with 3 additions and 3 deletions

View File

@ -39,8 +39,8 @@ class MiddlewareTests(InvenTreeTestCase):
def test_token_auth(self):
"""Test auth with token auth."""
# get token
# response = self.client.get(reverse('api-token'), format='json', data={})
# token = response.data['token']
response = self.client.get(reverse('api-token'), format='json', data={})
token = response.data['token']
# logout
self.client.logout()
@ -54,7 +54,7 @@ class MiddlewareTests(InvenTreeTestCase):
self.check_path(reverse('api-license'), 401)
# request with token
# self.check_path(reverse('api-license'), HTTP_Authorization=f'Token {token}')
self.check_path(reverse('api-license'), HTTP_Authorization=f'Token {token}')
def test_error_exceptions(self):
"""Test that ignored errors are not logged."""