APIRequestFactory missing query_params #9401
Unanswered
PedroDaumas
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone, I've been using Django DRF and I'm facing some issues creating unit tests to make sure my pagination is working properly.
I tried using the RequestFactory and the Client to generate a request to pass to the pagination function but the requests created don't come with a query_params making the unit-tests fail.
Error:
Pagination:
I tried a bunch of different things adding a Session Middleware, and using the default Client and RequestFactory functions instead of DRF ones but nothing worked
Beta Was this translation helpful? Give feedback.
All reactions