Django helpers — pytest-django documentation
pytest-django.readthedocs.io › en › latestAn instance of a django.test.AsyncClient. Example This example uses pytest-asyncio. @pytest.mark.asyncio async def test_with_async_client(async_client): response = await async_client.get('/') assert response.content == 'Foobar' admin_client - django.test.Client logged in as admin An instance of a django.test.Client, logged in as an admin user.