[Answer]-How to use mock.patch() for Django request object?

1👍

Rather than using a mock object, you should probably use django.test.client.RequestFactory to generate a request object.

👤knbk

Leave a comment