Fix disable api remote auth test, Django 5.2 no longer uses process_request

This commit is contained in:
shamoon
2025-05-13 09:07:05 -07:00
parent b8419671c9
commit 8c4870034e
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import os
from unittest import mock
from django.conf import settings
from django.contrib.auth.models import User
from django.test import override_settings
from rest_framework import status
@@ -91,6 +92,7 @@ class TestRemoteUser(DirectoriesMixin, APITestCase):
@override_settings(
REST_FRAMEWORK={
**settings.REST_FRAMEWORK,
"DEFAULT_AUTHENTICATION_CLASSES": [
"rest_framework.authentication.BasicAuthentication",
"rest_framework.authentication.TokenAuthentication",