From 1a43198cb796ade4824983f612cd76ed5b017570 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 23 Jun 2021 23:28:32 +1000 Subject: [PATCH] actually run tests, for a change --- InvenTree/InvenTree/test_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/InvenTree/test_api.py b/InvenTree/InvenTree/test_api.py index 7581ec4fec..fc9177e5c2 100644 --- a/InvenTree/InvenTree/test_api.py +++ b/InvenTree/InvenTree/test_api.py @@ -38,7 +38,7 @@ class APITests(InvenTreeAPITestCase): auth = b64encode(authstring).decode("ascii") self.client.credentials(HTTP_AUTHORIZATION="Basic {auth}".format(auth=auth)) - def tokenAuth(self): + def test_tokenAuth(self): self.basicAuth() token_url = reverse('api-token') @@ -50,7 +50,7 @@ class APITests(InvenTreeAPITestCase): token = response.data['token'] self.token = token - def token_failure(self): + def test_token_failure(self): # Test token endpoint without basic auth url = reverse('api-token') response = self.client.get(url, format='json') @@ -58,7 +58,7 @@ class APITests(InvenTreeAPITestCase): self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) self.assertIsNone(self.token) - def token_success(self): + def test_token_success(self): self.tokenAuth() self.assertIsNotNone(self.token)