Source code for django_orjson.rest_framework.test
from __future__ import annotations
from rest_framework.test import APIClient as BaseAPIClient
from rest_framework.test import APILiveServerTestCase as BaseAPILiveServerTestCase
from rest_framework.test import APISimpleTestCase as BaseAPISimpleTestCase
from rest_framework.test import APITestCase as BaseAPITestCase
from rest_framework.test import APITransactionTestCase as BaseAPITransactionTestCase
from django_orjson.test import Client, SimpleTestCase
[docs]
class APIClient(Client, BaseAPIClient): # type: ignore[misc]
pass
[docs]
class APISimpleTestCase(SimpleTestCase, BaseAPISimpleTestCase): # type: ignore[misc]
client_class = APIClient
[docs]
class APITransactionTestCase(SimpleTestCase, BaseAPITransactionTestCase): # type: ignore[misc]
client_class = APIClient
[docs]
class APITestCase(SimpleTestCase, BaseAPITestCase): # type: ignore[misc]
client_class = APIClient
[docs]
class APILiveServerTestCase(SimpleTestCase, BaseAPILiveServerTestCase): # type: ignore[misc]
client_class = APIClient