diff --git a/qgis-app/api/tests/test_user_token.py b/qgis-app/api/tests/test_manage_token.py similarity index 95% rename from qgis-app/api/tests/test_user_token.py rename to qgis-app/api/tests/test_manage_token.py index e1c8e895..309b4cdd 100644 --- a/qgis-app/api/tests/test_user_token.py +++ b/qgis-app/api/tests/test_manage_token.py @@ -4,10 +4,10 @@ from rest_framework_simplejwt.token_blacklist.models import OutstandingToken from api.models import UserOutstandingToken from django.contrib.auth.models import User -from django.test import TransactionTestCase +from django.test import TestCase -class UserTokenDetailViewTests(TransactionTestCase): +class UserTokenDetailViewTests(TestCase): fixtures = ["fixtures/simplemenu.json"] def setUp(self): self.client = APIClient() @@ -35,7 +35,7 @@ def test_user_token_detail_view_invalid_token(self): self.assertEqual(response.status_code, 404) -class TestUserTokenListView(TransactionTestCase): +class TestUserTokenListView(TestCase): fixtures = ["fixtures/simplemenu.json"] def setUp(self): @@ -70,7 +70,7 @@ def test_user_token_list_view_no_tokens(self): self.assertTemplateUsed(response, "user_token_list.html") -class TestUserTokenCreate(TransactionTestCase): +class TestUserTokenCreate(TestCase): fixtures = ["fixtures/simplemenu.json"] def setUp(self): @@ -93,7 +93,7 @@ def test_user_token_create_redirect(self): self.assertRedirects(response, reverse("user_token_detail", args=[2])) -class TestUserTokenUpdate(TransactionTestCase): +class TestUserTokenUpdate(TestCase): fixtures = ["fixtures/simplemenu.json"] def setUp(self): @@ -126,7 +126,7 @@ def test_user_token_update_post_valid(self): self.assertEqual(self.user_token.description, "Updated description") -class TestUserTokenDelete(TransactionTestCase): +class TestUserTokenDelete(TestCase): fixtures = ["fixtures/simplemenu.json"] def setUp(self): diff --git a/qgis-app/api/tests/test_api.py b/qgis-app/api/tests/test_resources_api.py similarity index 100% rename from qgis-app/api/tests/test_api.py rename to qgis-app/api/tests/test_resources_api.py