fix: pagination

This commit is contained in:
2024-11-26 13:20:54 +01:00
parent 7d80c64e40
commit 296195df03
4 changed files with 46 additions and 31 deletions
+1 -10
View File
@@ -22,16 +22,7 @@ class TestUserAuthenticationMixin:
self.setup_user_permissions()
def login(self):
response = self.client.post(
"/api/v1/auth/login/",
{
"username": self.user.username,
"password": self.password,
},
)
jwt_token = response.data.get("access")
self.client.credentials(HTTP_AUTHORIZATION=f"Bearer {jwt_token}")
self.client.force_login(self.user)
def setup_user_permissions(self):
self.create_permission = Permission.objects.get(