summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
authorAlexandre Spaeth <Alexerson@users.noreply.github.com>2023-02-17 10:35:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-17 10:48:00 +0100
commitbfb8fda3e69cc6f5c6695ba70117faff51cc25a9 (patch)
tree58b2dc46a4adbc5952dad9f42f6a2b4757d8d16e /tests/admin_views
parent8eef22dfed2d53df0da10c0090d9cb04f66efb15 (diff)
downloaddjango-bfb8fda3e69cc6f5c6695ba70117faff51cc25a9.tar.gz
Refs #34342 -- Added tests for handling sync streaming responses by test client.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/test_actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_views/test_actions.py b/tests/admin_views/test_actions.py
index 0c209019f3..35e4583d95 100644
--- a/tests/admin_views/test_actions.py
+++ b/tests/admin_views/test_actions.py
@@ -253,7 +253,7 @@ class AdminActionsTest(TestCase):
response = self.client.post(
reverse("admin:admin_views_externalsubscriber_changelist"), action_data
)
- content = b"".join(response.streaming_content)
+ content = b"".join(list(response))
self.assertEqual(content, b"This is the content of the file")
self.assertEqual(response.status_code, 200)