[Answered ]-Authenticating requests in Django test client

1👍

At last I found what works:

response = client.get('/api/v1/users/auth/user/', 
                      **{ "HTTP_AUTHORIZATION": f"Token {token}" })

Leave a comment