Skip to content

Commit

Permalink
Fix api test order
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Sep 20, 2024
1 parent d7ea3bd commit 53a701f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand All @@ -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):
Expand Down Expand Up @@ -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):
Expand Down
File renamed without changes.

0 comments on commit 53a701f

Please sign in to comment.