diff options
author | Alexandre Spaeth <Alexerson@users.noreply.github.com> | 2023-02-17 10:35:19 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-17 10:48:00 +0100 |
commit | bfb8fda3e69cc6f5c6695ba70117faff51cc25a9 (patch) | |
tree | 58b2dc46a4adbc5952dad9f42f6a2b4757d8d16e /tests/admin_views | |
parent | 8eef22dfed2d53df0da10c0090d9cb04f66efb15 (diff) | |
download | django-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.py | 2 |
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) |