Skip to content

Conversation

@hashlash
Copy link
Contributor

@hashlash hashlash commented Mar 21, 2022

Note: Before submitting this pull request, please review our contributing guidelines.

Description

Integrate with changes from django/django@272f685.

Closes #8406.

@hashlash hashlash changed the title Add retain test data on follow=True Added test client support for HTTP 307 and 308 redirects Mar 23, 2022
@hashlash hashlash marked this pull request as ready for review March 23, 2022 07:03
@lovelydinosaur
Copy link
Contributor

Seems pretty reasonable to me.

@lovelydinosaur lovelydinosaur merged commit df92e57 into encode:master Mar 24, 2022
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
* Add retain test data on follow=True

* Simplify TestAPITestClient.test_follow_redirect

Inspired from Django's ClientTest.test_follow_307_and_308_redirect

* Add 307 308 follow redirect test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError when using APITestCase.client.patch with 'follow=True' on redirects with 307 and 308

2 participants