A library to create Django request objects that mock real HTTP requests, useful for testing views and request-dependent code. Latest version 0.1.4 is in maintenance mode with minimal updates; no recent release activity.
pip install django-request-mockNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple GET request mock and passes it to a view.
Always set META with both HTTP_HOST and SERVER_NAME to match real Django behavior.
Consider using Django's built-in RequestFactory or pytest-django for testing.
For GET requests with query params, set META['QUERY_STRING'] explicitly.