2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

revert de-activation

This commit is contained in:
Matthias Mair
2024-10-28 23:25:52 +01:00
parent e553227ea0
commit 536850b046

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."""