DRF testing client on redirectview - #9134
Unanswered
LiorA1
asked this question in
Question & Answer
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.
-
Hi,
I trying to test a Django redirectview, using the DRF APIClient and encounter a weird behavior:
I'm doing 'assertRedirects' on the external url with 'fetch_redirect_response=False', which returns the expected-ish response (because it cant access external urls).
but when Im trying to access the same external (redirect) url again, it return as a response my own index page content.
can someone add some clarity to this?
code snippet:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions