From 0ed8d4e7d1029e1283b04f70d51d2af96ad85d6a Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Mon, 12 Jan 2026 14:51:32 +0100 Subject: Fixed #36859 -- Made assertContains and assertNotContains idempotent for streaming responses. --- docs/releases/6.1.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/releases/6.1.txt') diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt index 6b18331a1b..1bd4f091aa 100644 --- a/docs/releases/6.1.txt +++ b/docs/releases/6.1.txt @@ -355,7 +355,11 @@ Templates Tests ~~~~~ -* ... +* :meth:`~django.test.SimpleTestCase.assertContains` and + :meth:`~django.test.SimpleTestCase.assertNotContains` can now be called + multiple times on the same :class:`~django.http.StreamingHttpResponse`. + Previously, they would consume the streaming response's content, causing + subsequent calls to fail. URLs ~~~~ -- cgit v1.3