From def6a59675dd1d8a701fafe7e64780c926428694 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Thu, 18 Jul 2024 15:38:55 -0400 Subject: [PATCH] Fix tests --- app/tests/test_api_task_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tests/test_api_task_import.py b/app/tests/test_api_task_import.py index 04e2bf82..9dc04d10 100644 --- a/app/tests/test_api_task_import.py +++ b/app/tests/test_api_task_import.py @@ -74,7 +74,7 @@ class TestApiTask(BootTransactionTestCase): assets_path = os.path.join(settings.MEDIA_TMP, "all.zip") with open(assets_path, 'wb') as f: - f.write(res.content) + f.write(b''.join(res.streaming_content)) remove_perm('change_project', user, project) @@ -272,7 +272,7 @@ class TestApiTask(BootTransactionTestCase): assets_path = os.path.join(settings.MEDIA_TMP, "backup.zip") with open(assets_path, 'wb') as f: - f.write(res.content) + f.write(b''.join(res.streaming_content)) assets_file = open(assets_path, 'rb')