fix: pagination
This commit is contained in:
+1
-10
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user